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

Class CacheManager

graphlite/src/cache/cache_manager.rs:27–48  ·  view source on GitHub ↗

Central cache manager coordinating all cache types

Source from the content-addressed store, hash-verified

25
26/// Central cache manager coordinating all cache types
27pub struct CacheManager {
28 config: CacheConfig,
29
30 // Core caches
31 result_cache: Arc<ResultCache>,
32 plan_cache: Arc<PlanCache>,
33 subquery_cache: Arc<SubqueryCache>,
34
35 // Cache statistics and monitoring
36 global_stats: Arc<RwLock<GlobalCacheStats>>,
37
38 // Version tracking for invalidation
39 graph_version: Arc<RwLock<u64>>,
40 schema_version: Arc<RwLock<u64>>,
41
42 // Invalidation management
43 invalidation_manager: Arc<InvalidationManager>,
44
45 // Event tracking
46 events: Arc<RwLock<Vec<CacheEvent>>>,
47 max_events: usize,
48}
49
50/// Global cache statistics across all cache types
51#[derive(Debug, Default, Clone)]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected