package
5.5.2+incompatible
Repository: https://github.com/keycase/client-fork.git
Documentation: pkg.go.dev
# Functions
NewLRUEvictedCache returns a Cache that uses LRU eviction strategy.
NewRandomEvictedCache returns a Cache that uses random eviction strategy.
StaticSizeOfMap provides a best-effort estimate of number of bytes that a map takes in memory.
StaticSizeOfMapWithSize is a slightly more efficient version of StaticSizeOfMap for when the caller knows the static size of key and value without having to use `reflect`.
# Interfaces
Cache defines an interface for a cache that stores Measurable content.
Measurable is an interface for types whose size is measurable.