Crate tiny_lfu

Source
Expand description

§TinyLFU

tiny_lfu provides a cache admission control policy.

§Status

Maintenance track. The library is considered stable and will be put into maintenance mode if unchanged for one year.

§Scope

This library provides the AdmissionPolicy trait and TinyLFU implementation of said trait.

§Warts

§Documentation

The latest documentation is always available at docs.rs.

§Updating

  • 0.1.1 -> 0.1.2: Update to biometrics 0.3.

Structs§

TinyLFU
TinyLFU is a AdmissionPolicy that can recommend when one element is more popular than another.
TinyLFUOptions
TinyLFUOptions controls the layout of the TinyLFU.

Constants§

MAX_KEYS
The maximum number of keys allowed.
MIN_PROBABILITY
The minimum probability allowed.

Traits§

AdmissionPolicy
An AdmissionPolicy is a gatekeeping force at the entry to the cache. A good admission policy will only replace objects in the cache when the caching outcome is favorable.