MCPcopy Create free account
hub / github.com/erans/pgsqlite / get_cache_info

Method get_cache_info

src/cache/memory_aware_manager.rs:374–380  ·  view source on GitHub ↗

Get detailed cache information

(&self)

Source from the content-addressed store, hash-verified

372
373 /// Get detailed cache information
374 pub fn get_cache_info(&self) -> Vec<(String, String)> {
375 let caches = self.managed_caches.read();
376 caches
377 .iter()
378 .map(|(name, cache)| (name.clone(), cache.stats_summary()))
379 .collect()
380 }
381
382 /// Force eviction across all caches
383 pub fn force_eviction(&self, percentage: f32) -> usize {

Callers 3

test_cache_statsFunction · 0.45

Calls 3

readMethod · 0.80
stats_summaryMethod · 0.80
cloneMethod · 0.45

Tested by 1

test_cache_statsFunction · 0.36