Trait light_cache::policy::Prune
source · pub trait Prune<K, V, P> {
// Required method
fn prune<S: BuildHasher>(&mut self, cache: &LightCache<K, V, S, P>);
}Expand description
Prune should control how entries are expired (not nescessarily evicted) from the cache
Required Methods§
sourcefn prune<S: BuildHasher>(&mut self, cache: &LightCache<K, V, S, P>)
fn prune<S: BuildHasher>(&mut self, cache: &LightCache<K, V, S, P>)
Prune is typically be called before any operation on the cache
Object Safety§
This trait is not object safe.