Skip to main content

Crate reth_execution_cache

Crate reth_execution_cache 

Source
Expand description

Cross-block execution cache for payload processing.

This crate provides the core caching infrastructure used during block execution:

  • ExecutionCache: Fixed-size concurrent caches for accounts, storage, and bytecode
  • SavedCache: An execution cache snapshot associated with a specific block hash
  • PayloadExecutionCache: Thread-safe wrapper for sharing cached state across payload processing tasks

Structs§

CacheStats
Cache hit/miss statistics for detailed block logging.
CacheStatsHandler
A stats handler for fixed-cache that tracks collisions and size.
CachedStateCacheMetrics
Metrics for shared execution cache state.
CachedStateMetrics
Metrics for the cached state provider, showing hits and misses for each cache tier.
CachedStateProvider
A wrapper of a state provider and a shared cache.
ExecutionCache
Execution cache used during block processing.
PayloadExecutionCache
A guarded, thread-safe cache of execution state that tracks the most recent block’s caches.
SavedCache
A saved cache that has been used for executing a specific block, which has been updated for its execution.
TxPoolPrewarmCacheSnapshot
A deep, immutable txpool-prewarm cache snapshot for one parent state.

Enums§

CacheCheckout
Outcome of PayloadExecutionCache::checkout.
CacheFillMode
Whether cache misses should populate the shared execution cache.
CachedStateMetricsSource
The source that is using the execution cache.
CachedStatus
Represents the status of a key in the cache.