MCPcopy Create free account
hub / github.com/GraphLite-AI/GraphLite / CacheConfig

Class CacheConfig

graphlite/src/cache/cache_config.rs:11–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9/// Global cache configuration
10#[derive(Debug, Clone, Serialize, Deserialize)]
11pub struct CacheConfig {
12 /// Enable/disable caching entirely
13 pub enabled: bool,
14
15 /// Maximum memory usage across all caches (bytes)
16 pub max_memory_bytes: usize,
17
18 /// L1 cache configuration (hot data)
19 pub l1_config: LevelConfig,
20
21 /// L2 cache configuration (warm data)
22 pub l2_config: LevelConfig,
23
24 /// L3 cache configuration (cold data)
25 pub l3_config: LevelConfig,
26
27 /// Global eviction policy
28 pub eviction_policy: EvictionPolicy,
29
30 /// Cache statistics collection interval
31 pub stats_interval: Duration,
32
33 /// Enable cache compression
34 pub compression_enabled: bool,
35
36 /// Invalidation strategy
37 pub invalidation_strategy: InvalidationStrategy,
38}
39
40/// Configuration for a specific cache level
41#[derive(Debug, Clone, Serialize, Deserialize)]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected