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

Method clear_cache

graphlite/src/storage/storage_manager.rs:503–508  ·  view source on GitHub ↗

Clear only the in-memory cache (not persistent storage)

(&self)

Source from the content-addressed store, hash-verified

501
502 /// Clear only the in-memory cache (not persistent storage)
503 pub fn clear_cache(&self) -> Result<(), StorageError> {
504 debug!("Clearing storage cache");
505 self.cache.clear()?;
506 debug!("Successfully cleared storage cache");
507 Ok(())
508 }
509
510 /// Get cache statistics (entries count, memory bytes estimate)
511 pub fn get_cache_stats(&self) -> (usize, usize) {

Callers 1

clear_all_dataMethod · 0.45

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected