allegro/bigcache
Efficient cache for gigabytes of data written in Go. observed · 2026-08-28
Health v2 · maintenance only
87/100
- Activity 98
- Release rhythm 66
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 3815
- days_rel: 19
- days_push: 16
- n_releases_24m: 1
Adoption not part of the score
8155 stars · 610 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
BigCache is a fast, concurrent, evicting in-memory cache library for Go designed to hold gigabytes of entries without GC overhead by storing data as byte slices on the heap. It supports sharding, TTL-based eviction, size limits, and removal callbacks.
Use cases
- cache gigabytes of data in a Go service without GC pauses
- add a fast in-process key-value cache to a Go API
- store millions of entries in memory with predictable performance
- cache serialized objects with TTL expiration in Go
- replace map-based caching that causes high GC pressure
When to choose
- you need a high-throughput in-memory cache inside a single Go process
- GC pauses from large maps are hurting your service's latency
- you can store entries as byte slices and handle serialization yourself
When to avoid
- you need a distributed or shared cache across multiple instances (use Redis instead)
- you need to cache complex Go objects without serialization overhead
- your dataset is small enough that a plain map with sync.RWMutex suffices
Facets
library · maturity stable
caching performance backend developer-tools go windows cross-platform in-memory-cache gc-friendly byte-slice-storage sharded-cache golang linux macos
2 sources
- readme: https://github.com/allegro/bigcache · fetched 2026-08-28 · 8fdc34ceebee
- homepage: http://allegro.tech/2016/03/writing-fast-cache-service-in-go.html · fetched 2026-08-29 · 17f12da67f58
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| allegro/bigcache | main | 87 |
For agents
markdown · JSON · MCP: product_card(name="allegro/bigcache")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem