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

Method overall_hit_rate

graphlite/src/cache/cache_manager.rs:63–70  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

61
62impl GlobalCacheStats {
63 pub fn overall_hit_rate(&self) -> f64 {
64 let total = self.total_hits + self.total_misses;
65 if total == 0 {
66 0.0
67 } else {
68 self.total_hits as f64 / total as f64
69 }
70 }
71
72 pub fn memory_efficiency(&self) -> f64 {
73 if self.total_entries == 0 {

Callers 2

get_health_scoreMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected