ark::core::KeyValueCacheConfig

Defined in header “ark/core/key_value_cache.hh”.


A configuration structure for the KeyValueCache.

Variables

  • std::size_t max_size_bytes= 0
    Maximum total size of values stored in the cache, in bytes. Keys are not counted toward this limit; only the the abstract value payload sizes are.

  • std::chrono::seconds retrieval_boost{0}
    A “boost” duration in seconds that is multiplied by the number of times a value has been retrieved to compute an “effective” last-access time. Newer items or items retrieved frequently are less likely to be evicted.