Module tinylfu_cached::cache::types

source ·

Type Definitions

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