karlseguin/ccache
A golang LRU Cache for high concurrency observed · 2026-08-28
Health v2 · maintenance only
59/100
- Activity 62
- Release rhythm 33
- 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: 232.0
- age_days: 4702
- days_rel: 237
- days_push: 232
- n_releases_24m: 3
Adoption not part of the score
1396 stars · 122 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
CCache is a Go in-memory LRU cache library designed for high-concurrency workloads. It reduces lock contention via sharded buckets, a promotion window, and a buffered channel that queues promotions to a single background worker.
Use cases
- cache frequently accessed data in a Go service
- high-concurrency in-memory caching with low lock contention
- serve slightly stale content while refreshing in the background
- cache with per-item TTLs and expiration control
- sharded LRU cache for large key sets
When to choose
- you need a thread-safe LRU cache in Go under heavy concurrent access
- you want configurable sharding, promotion, and pruning behavior
- you want to serve stale values while re-fetching fresh data
When to avoid
- you need a distributed or shared cache across processes (use Redis or similar)
- you need persistence or eviction policies beyond LRU with TTL
- your workload is single-threaded and low volume, where a simple map suffices
Facets
library · maturity stable
caching developer-tools backend performance go cross-platform lru-cache in-memory-cache high-concurrency sharded-cache ttl
1 source
- readme: https://github.com/karlseguin/ccache · fetched 2026-08-28 · 3718dace053f
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| karlseguin/ccache | main | 59 |
For agents
markdown · JSON · MCP: product_card(name="karlseguin/ccache")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem