Skip to main content

Module content_addressable_cache

Module content_addressable_cache 

Source
Expand description

Content-Addressable Cache with LRU eviction and TTL support.

Provides a high-performance, in-memory cache keyed by content-derived CIDs (FNV-1a). Supports multiple eviction policies, TTL expiration, tag-based grouping, and rich stats.

Structs§

CacheConfig
Configuration for ContentAddressableCache.
CacheEntry
A single entry stored in the cache.
CacheStats
Snapshot of cache performance counters.
ContentAddressableCache
High-performance content-addressable cache.
LruNode
A node in the index-based doubly-linked LRU list.

Enums§

CacheError
Errors that can arise during cache operations.
EvictionPolicy
Eviction policy controlling which entry is removed when the cache is full.