https://github.com/jehiah/lru
Go library for caching arbitrary data with least-recently-used (LRU) eviction strategy
https://github.com/jehiah/lru
cache go lru
Last synced: 6 months ago
JSON representation
Go library for caching arbitrary data with least-recently-used (LRU) eviction strategy
- Host: GitHub
- URL: https://github.com/jehiah/lru
- Owner: jehiah
- License: mit
- Created: 2015-01-26T21:20:58.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2022-03-20T00:55:18.000Z (over 3 years ago)
- Last Synced: 2025-03-25T05:11:10.299Z (7 months ago)
- Topics: cache, go, lru
- Language: Go
- Size: 18.6 KB
- Stars: 3
- Watchers: 2
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# LRU
[](http://travis-ci.org/jehiah/lru) [](https://godoc.org/github.com/jehiah/lru) [](https://github.com/jehiah/lru/releases/latest)
`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](https://gist.github.com/larsmans/4638795) and [vitess](https://github.com/vitessio/vitess/blob/main/go/cache/lru_cache.go)
Docs: https://godoc.org/github.com/jehiah/lru