Module lru_caching

Source
Expand description

Add LRU (least recently used) caching to a given store.

Structs§

LruCachingConfig
The configuration type for the LruCachingStore.
LruCachingStore
We take a store, a maximum size and build a LRU-based system.
StorageCacheConfig
The parametrization of the cache

Constants§

DEFAULT_STORAGE_CACHE_CONFIG
The maximum number of entries in the cache. If the number of entries in the cache is too large then the underlying maps become the limiting factor

Type Aliases§

LruCachingMemoryStore
A memory store with caching.