Skip to main content

Module rpc_cache_layer

Module rpc_cache_layer 

Source

Statics§

UPSTREAM_REQUEST_COUNTER
Optional but useful: counts actual upstream RPC calls to Solana. This is different from REQUEST_COUNTER which counts requests handled by this layer.

Functions§

run_rpc_cache_once
Runs one cache cycle (warm-up) and exits. Intended for: svo rpc-cache --once (cronjob/init-container use).
start_rpc_cache
Starts the background RPC cache loop (spawns a task and returns immediately).