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

Method clear

graphlite/src/cache/plan_cache.rs:315–322  ·  view source on GitHub ↗

Clear all cached plans

(&self)

Source from the content-addressed store, hash-verified

313
314 /// Clear all cached plans
315 pub fn clear(&self) {
316 self.entries.write().unwrap().clear();
317 *self.current_memory.write().unwrap() = 0;
318
319 let mut stats = self.stats.write().unwrap();
320 stats.current_entries = 0;
321 stats.current_memory_bytes = 0;
322 }
323
324 /// Get cache efficiency metrics
325 pub fn efficiency_metrics(&self) -> CacheEfficiencyMetrics {

Callers 1

clear_allMethod · 0.45

Calls 1

unwrapMethod · 0.80

Tested by

no test coverage detected