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

Method stats

graphlite/src/cache/subquery_cache.rs:675–680  ·  view source on GitHub ↗

Get cache statistics

(&self)

Source from the content-addressed store, hash-verified

673
674 /// Get cache statistics
675 pub fn stats(&self) -> SubqueryCacheStats {
676 let mut stats = self.stats.read().unwrap().clone();
677 stats.current_entries = self.entries.read().unwrap().len();
678 stats.memory_bytes = *self.current_memory.read().unwrap();
679 stats
680 }
681
682 /// Clear all cached subquery results
683 pub fn clear(&self) {

Callers

nothing calls this directly

Calls 3

cloneMethod · 0.80
unwrapMethod · 0.80
lenMethod · 0.45

Tested by

no test coverage detected