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

Method clear

graphlite/src/cache/subquery_cache.rs:683–692  ·  view source on GitHub ↗

Clear all cached subquery results

(&self)

Source from the content-addressed store, hash-verified

681
682 /// Clear all cached subquery results
683 pub fn clear(&self) {
684 self.entries.write().unwrap().clear();
685 self.boolean_index.write().unwrap().clear();
686 self.scalar_index.write().unwrap().clear();
687 *self.current_memory.write().unwrap() = 0;
688
689 let mut stats = self.stats.write().unwrap();
690 stats.current_entries = 0;
691 stats.memory_bytes = 0;
692 }
693}
694
695/// Helper to create subquery cache key

Callers

nothing calls this directly

Calls 1

unwrapMethod · 0.80

Tested by

no test coverage detected