Skip to main content

ConcurrentSlruCacheConfig

Type Alias ConcurrentSlruCacheConfig 

Source
pub type ConcurrentSlruCacheConfig = ConcurrentCacheConfig<SlruCacheConfig>;
Expand description

Configuration for a concurrent SLRU cache. Type alias for ConcurrentCacheConfig<SlruCacheConfig>.

Aliased Type§

pub struct ConcurrentSlruCacheConfig {
    pub base: SlruCacheConfig,
    pub segments: usize,
}

Fields§

§base: SlruCacheConfig

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)