Central cache manager coordinating all cache types
| 25 | |
| 26 | /// Central cache manager coordinating all cache types |
| 27 | pub 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)] |
nothing calls this directly
no outgoing calls
no test coverage detected