Module light_cache::policy
source · Expand description
A policy augments access to a LightCache instance, managing the entry and eviction of items in the cache.
Re-exports§
pub use noop::NoopPolicy;pub use ttl::TtlPolicy;
Modules§
Traits§
- A Policy augments accsess to a LightCache instance, managing the entry and eviction of items in the cache.
- Prune should control how entries are expired (not nescessarily evicted) from the cache