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

Method get_cache_stats

graphlite/src/storage/storage_manager.rs:511–516  ·  view source on GitHub ↗

Get cache statistics (entries count, memory bytes estimate)

(&self)

Source from the content-addressed store, hash-verified

509
510 /// Get cache statistics (entries count, memory bytes estimate)
511 pub fn get_cache_stats(&self) -> (usize, usize) {
512 let entries = self.cache.graph_count();
513 // Rough estimate: 1KB per cached graph entry
514 let memory_bytes = entries * 1024;
515 (entries, memory_bytes)
516 }
517
518 /// Clear all stored data
519 pub fn clear_all_data(&self) -> Result<(), StorageError> {

Callers 1

cache_statsMethod · 0.80

Calls 1

graph_countMethod · 0.80

Tested by

no test coverage detected