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

Method l1_hit_rate

graphlite/src/cache/result_cache.rs:188–194  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

186 }
187
188 pub fn l1_hit_rate(&self) -> f64 {
189 if self.total_requests == 0 {
190 0.0
191 } else {
192 self.l1_hits as f64 / self.total_requests as f64
193 }
194 }
195}
196
197impl ResultCache {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected