Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 24 days 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 (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2022-03-20T00:55:18.000Z (over 2 years ago)
- Last Synced: 2024-04-17T15:23:23.269Z (7 months ago)
- Topics: cache, go, lru
- Language: Go
- Size: 18.6 KB
- Stars: 3
- Watchers: 3
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# LRU
[![Build Status](https://secure.travis-ci.org/jehiah/lru.png?branch=master)](http://travis-ci.org/jehiah/lru) [![GoDoc](https://godoc.org/github.com/jehiah/lru?status.svg)](https://godoc.org/github.com/jehiah/lru) [![GitHub release](https://img.shields.io/github/release/jehiah/lru.svg)](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