/lru

Go library for caching arbitrary data with least-recently-used (LRU) eviction strategy

Primary LanguageGo

LRU

LRU is a Go library for caching arbitrary data with least-recently-used (LRU) eviction strategy. There is also a LRUCounter which allows you to easily to count high cardinality lists while keeping a bounded set in memory.

Inspired by LRU code from larsmans and vitess

Docs: https://godoc.org/github.com/jehiah/lru