Module building_blocks_storage::caching[][src]

Structs

LocalCache

A cache with a very specific niche. When reading from shared, two-tier storage, if you miss the cache and need to fetch from the cold tier, then you also need a place to store the fetched data. Rather than doing interior mutation of the storage, which requires synchronization, the fetched data can be stored in a thread-local cache, the LocalCache.

LruCache

A cache that tracks the Least Recently Used element for next eviction.

LruCacheEntries
LruCacheIntoIter

Enums

CacheEntry

Type Definitions

LruCacheKeys
SmallKeyLruCache

An LruCache using a hashing algorithm that’s optimal for small keys.