Module config

Source
Expand description

Cache configuration structures.

Provides configuration structures for all cache algorithm implementations. Cache Configuration Module

This module provides configuration structures for all cache algorithm implementations. Each cache type has its own dedicated configuration struct that encapsulates algorithm-specific parameters.

Using configurations instead of individual fields provides several benefits:

  • Cleaner API with related parameters grouped together
  • Easier to extend with new parameters without breaking existing code
  • Supports configuration reuse across multiple cache instances
  • Enables factory patterns and programmatic cache configuration

Re-exports§

pub use gdsf::GdsfCacheConfig;
pub use lfu::LfuCacheConfig;
pub use lfuda::LfudaCacheConfig;
pub use lru::LruCacheConfig;
pub use slru::SlruCacheConfig;

Modules§

gdsf
Configuration for the Greedy Dual-Size Frequency (GDSF) cache.
lfu
Configuration for the Least Frequently Used (LFU) cache.
lfuda
Configuration for the Least Frequently Used with Dynamic Aging (LFUDA) cache.
lru
Configuration for the Least Recently Used (LRU) cache.
slru
Configuration for the Segmented Least Recently Used (SLRU) cache.