Type Alias foyer_memory::LfuCacheConfig

source ·
pub type LfuCacheConfig<K, V, L = DefaultCacheEventListener<K, V>, S = RandomState> = CacheConfig<Lfu<K, V>, L, S>;

Aliased Type§

struct LfuCacheConfig<K, V, L = DefaultCacheEventListener<K, V>, S = RandomState> {
    pub capacity: usize,
    pub shards: usize,
    pub eviction_config: <Lfu<K, V> as Eviction>::Config,
    pub object_pool_capacity: usize,
    pub hash_builder: S,
    pub event_listener: L,
}

Fields§

§capacity: usize§shards: usize§eviction_config: <Lfu<K, V> as Eviction>::Config§object_pool_capacity: usize§hash_builder: S§event_listener: L