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 is a AdmissionPolicy that can recommend when one element is more popular than another.
- TinyLFUOptions controls the layout of the TinyLFU.
Constants§
- The maximum number of keys allowed.
- The minimum probability allowed.
Traits§
- 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.