Module lfu

Module lfu 

Source
Expand description

LFU based caches implementation.

This module contains LFU based caches, WTinyLFUCache, TinyLFU and SampledLFU.

Structs§

DefaultKeyHasher
DefaultKeyHasher uses the same hasher as the Hashmap’s default hasher
SampledLFU
SampledLFU stores key-costs paris
TinyLFU
TinyLFU is an admission helper that keeps track of access frequency using tiny (4-bit) counters in the form of a count-min sketch.
WTinyLFUCache
WTinyLFUCache implements the W-TinyLFU, based on the paper TinyLFU: A Highly Efficient Cache Admission Policy
WTinyLFUCacheBuilder
WTinyLFUCacheBuilder is used to help build a TinyLFUCache with custom configurations.

Traits§

KeyHasher
KeyHasher is used to hash keys for Bloom Filter and CountSketch