package
4.3.2+incompatible
Repository: https://github.com/qbit/client.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`.

# Constants

IntSize is the number of bytes an int or uint takes.
MB is a short cut for 1024 * 1024.
stolen from runtime/internal/sys.

# Interfaces

Cache defines an interface for a cache that stores Measurable content.
Measurable is an interface for types whose size is measurable.