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

Interface ManagedCache

src/cache/memory_aware_manager.rs:106–112  ·  view source on GitHub ↗

Trait for caches that can be managed by the memory-aware manager

Source from the content-addressed store, hash-verified

104
105/// Trait for caches that can be managed by the memory-aware manager
106pub trait ManagedCache {
107 fn evict_percentage(&self, percentage: f32) -> usize;
108 fn clear(&self);
109 fn len(&self) -> usize;
110 fn memory_usage_bytes(&self) -> usize;
111 fn stats_summary(&self) -> String;
112}
113
114/// Implementation of ManagedCache for TtlCache
115impl<K, V> ManagedCache for TtlCache<K, V>

Callers

nothing calls this directly

Implementers 1

memory_aware_manager.rssrc/cache/memory_aware_manager.rs

Calls

no outgoing calls

Tested by

no test coverage detected