Skip to main content

ConcurrentLfuCacheConfig

Type Alias ConcurrentLfuCacheConfig 

Source
pub type ConcurrentLfuCacheConfig = ConcurrentCacheConfig<LfuCacheConfig>;
Expand description

Configuration for a concurrent LFU cache. Type alias for ConcurrentCacheConfig<LfuCacheConfig>.

Aliased Type§

pub struct ConcurrentLfuCacheConfig {
    pub base: LfuCacheConfig,
    pub segments: usize,
}

Fields§

§base: LfuCacheConfig

Base configuration for the underlying cache algorithm. See individual config docs for sizing guidance.

§segments: usize

Number of segments for sharding (more segments = less contention)