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§
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