Go library for caching arbitrary data with least-recently-used (LRU) eviction strategy
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.travis.yml
README.md
lru.go
lru_counter.go
lru_counter_test.go
lru_test.go

README.md

LRU

Build Status

LRU is a Go library for caching arbitrary data with least-recently-used (LRU) eviction strategy and TTL support. 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