Module cache

Module cache 

Source
Available on crate feature rpc only.
Expand description

Async caching support for eth RPC

Modules§

config
Configuration for RPC cache.
db
Helper types to workaround ‘higher-ranked lifetime error’ https://github.com/rust-lang/rust/issues/100013 in default implementation of reth_rpc_eth_api::helpers::Call.
metrics
Tracks state of RPC cache.
multi_consumer
Metered cache, which also provides storage for senders in order to queue queries that result in a cache miss.

Structs§

CacheServiceUnavailable
Thrown when the cache service task dropped.
EthStateCache
Provides async access to cached eth data

Functions§

cache_new_blocks_task
Awaits for new chain events and directly inserts them into the cache so they’re available immediately before they need to be fetched from disk.