Module cache

Source

Structs§

Cache
Cache is a thread-safe implementation of a hashmap with a TinyLFU admission policy and a Sampled LFU eviction policy. You can use the same Cache instance from as many goroutines as you want.
Config
Config is passed to NewCache for creating new Cache instances.
Item
Metrics

Enums§

ItemFlag
PutResult

Constants§

COST_ADD
COST_EVICT
DO_NOT_USE
DROP_GETS
DROP_SETS
HIT
KEEP_GETS
KEY_EVICT
KEY_UPDATE
MISS
NUM_SHARDS
number shared element on store
REJECT_SETS