karlseguin/ccache
A golang LRU Cache for high concurrency observed · 2026-10-19
Health v2 · maintenance only
60/100
- Activity 54
- Release rhythm 45
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-10-21. Adoption (stars, forks) is never an input.
- gap_med: 68
- age_days: 4750
- days_rel: 285
- days_push: 280
- n_releases_24m: 2
Adoption not part of the score
1397 stars · 122 forks observed · 2026-10-19
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-10-19 · 3718dace053f
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| karlseguin/ccache | main | 60 |
For agents
markdown · JSON · MCP: product_card(name="karlseguin/ccache")
Data as of 2026-10-19T08:05:51.212177+00:00 · Report a problem