hashicorp/golang-lru
Golang LRU cache observed · 2026-08-28
Health v2 · maintenance only
65/100
- Activity 94
- Release rhythm 8
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 4410
- days_rel: n/a
- days_push: 37
- n_releases_24m: 0
Adoption not part of the score
5114 stars · 541 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
A Go library implementing fixed-size, thread-safe LRU caches, including variants with TTL-based expiration and ARC support. It is based on the cache implementation from Groupcache and is maintained by HashiCorp.
Use cases
- add an in-memory LRU cache to a Go application
- limit memory usage by evicting least recently used entries
- cache values with a time-to-live expiration
- build a thread-safe bounded cache for concurrent access
- memoize expensive function results with a fixed-size cache
When to choose
- you need a small, dependency-light, thread-safe LRU cache in Go
- you want optional TTL expiration or ARC eviction policies
- you need generics support for typed cache keys and values
When to avoid
- you need a distributed or shared cache across processes (use Redis or similar)
- you need persistence or advanced features like cache statistics dashboards
- your application is not written in Go
Facets
library · maturity stable
caching developer-tools performance go cross-platform lru-cache in-memory-cache thread-safe ttl eviction
1 source
- readme: https://github.com/hashicorp/golang-lru · fetched 2026-08-28 · 2868872fe747
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| hashicorp/golang-lru | main | 65 |
For agents
markdown · JSON · MCP: product_card(name="hashicorp/golang-lru")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem