Module types

Module types 

Source

Type Aliasesยง

FrequencyEstimate
Defines the type for the access frequency of keys in the cache.
IsTimeToLiveSpecified
Defines the type to denote if the client has specified the time_to_live.
KeyHash
Defines the type for the hash of a key
TotalCapacity
Defines type for the capacity of the cache in terms of the number of items the cache may store.
TotalCounters
Defines the type for total counter used in crate::cache::lfu::frequency_counter::FrequencyCounter, for counting the access frequencies of keys.
TotalShards
Defines the type for the total number of shards to be used for storing the key/value mapping.
Weight
Defines the type for the weight of the cache, which is the total space reserved for the cache.