bluele/gcache
An in-memory cache library for golang. It supports multiple eviction policies: LRU, LFU, ARC observed · 2026-08-28
Health v2 · maintenance only
32/100
- Activity 0
- Release rhythm 35
- Longevity 100
Flags: no_releases
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: 4239
- days_rel: n/a
- days_push: 915
- n_releases_24m: 0
Adoption not part of the score
2731 stars · 280 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
GCache is an in-memory cache library for Go supporting multiple eviction policies (LRU, LFU, ARC) and expirable entries. It is goroutine-safe and offers optional event handlers and automatic value loading via loader functions.
Use cases
- cache frequently accessed data in memory in a Go service
- evict least recently used entries when the cache is full
- cache entries with per-key expiration times
- automatically load and cache values on miss with a loader function
- track evictions and purges with event callbacks
When to choose
- you need a lightweight, dependency-free in-memory cache in Go
- you want a choice of LRU, LFU, or ARC eviction policies
- you need TTL-based expiration and loader functions in a single cache
When to avoid
- you need a distributed or shared cache across processes (use Redis or similar)
- you need persistence or a cache larger than available memory
Facets
library · maturity stable
caching developer-tools backend performance go in-memory-cache lru lfu arc eviction-policies goroutine-safe ttl
1 source
- readme: https://github.com/bluele/gcache · fetched 2026-08-28 · c8308954bf75
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| bluele/gcache | main | 32 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem