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

Method get_stats

graphlite/src/cache/cache_manager.rs:492–509  ·  view source on GitHub ↗

Get comprehensive cache statistics

(&self)

Source from the content-addressed store, hash-verified

490
491 /// Get comprehensive cache statistics
492 pub fn get_stats(&self) -> CacheManagerStats {
493 let result_stats = self.result_cache.stats();
494 let plan_stats = self.plan_cache.stats();
495 let subquery_stats = self.subquery_cache.stats();
496 let global_stats = self.global_stats.read().unwrap().clone();
497 let efficiency_metrics = self.plan_cache.efficiency_metrics();
498
499 CacheManagerStats {
500 global: global_stats,
501 result_cache: result_stats,
502 plan_cache: plan_stats,
503 subquery_cache: Some(subquery_stats),
504 efficiency: efficiency_metrics,
505 config: self.config.clone(),
506 graph_version: *self.graph_version.read().unwrap(),
507 schema_version: *self.schema_version.read().unwrap(),
508 }
509 }
510
511 /// Get current graph version (for session catalog caching)
512 pub fn get_graph_version(&self) -> u64 {

Callers 2

get_health_scoreMethod · 0.45
cache_statsMethod · 0.45

Calls 4

cloneMethod · 0.80
unwrapMethod · 0.80
efficiency_metricsMethod · 0.80
statsMethod · 0.45

Tested by

no test coverage detected