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

Class CacheStats

graphlite/src/cache/result_cache.rs:168–177  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

166
167#[derive(Debug, Default, Clone)]
168pub struct CacheStats {
169 pub l1_hits: u64,
170 pub l2_hits: u64,
171 pub misses: u64,
172 pub evictions: u64,
173 pub insertions: u64,
174 pub total_requests: u64,
175 pub memory_savings_bytes: u64,
176 pub time_savings_ms: u64,
177}
178
179impl CacheStats {
180 pub fn hit_rate(&self) -> f64 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected