Module policy

Module 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;
pub use lru::LruPolicy;

Modules§

lru
noop
ttl

Traits§

Policy
A Policy augments accsess to a LightCache instance, managing the entry and eviction of items in the cache.
Prune
Prune should control how entries are expired (not nescessarily evicted) from the cache