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

Method stats

graphlite/src/cache/plan_cache.rs:307–312  ·  view source on GitHub ↗

Get cache statistics

(&self)

Source from the content-addressed store, hash-verified

305
306 /// Get cache statistics
307 pub fn stats(&self) -> PlanCacheStats {
308 let mut stats = self.stats.read().unwrap().clone();
309 stats.current_entries = self.entries.read().unwrap().len();
310 stats.current_memory_bytes = *self.current_memory.read().unwrap();
311 stats
312 }
313
314 /// Clear all cached plans
315 pub fn clear(&self) {

Callers 2

get_statsMethod · 0.45
update_global_statsMethod · 0.45

Calls 3

cloneMethod · 0.80
unwrapMethod · 0.80
lenMethod · 0.45

Tested by

no test coverage detected