pub struct Cache { /* private fields */ }Expand description
High-performance cache with LRU eviction
Implementations§
Source§impl Cache
impl Cache
Sourcepub fn with_capacity(max_size: usize) -> Self
pub fn with_capacity(max_size: usize) -> Self
Create a new cache with specified capacity
Sourcepub fn stats(&self) -> CacheStats
pub fn stats(&self) -> CacheStats
Get cache statistics