patrickmn/go-cache
An in-memory key:value store/cache (similar to Memcached) library for Go, suitable for single-machine applications. observed · 2026-08-28
Health v2 · maintenance only
23/100
- Activity 0
- 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-02. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 5357
- days_rel: n/a
- days_push: 1017
- n_releases_24m: 0
Adoption not part of the score
8844 stars · 908 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
An in-memory key:value store/cache library for Go, similar to Memcached, designed for single-machine applications. It is essentially a thread-safe map with expiration times, requiring no serialization or network transmission.
Use cases
- cache expensive function results in a Go application
- store session data in memory with expiration
- replace memcached for single-machine apps
- share data safely between goroutines
- persist cache to file to recover from downtime
When to choose
- your Go app runs on a single machine and needs fast in-memory caching
- you want a simple thread-safe cache without running an external cache server
- you need per-item expiration or no-expiration entries
When to avoid
- you need a distributed or multi-node cache
- you need a persistent datastore
- you need eviction policies beyond TTL-based expiration
Facets
library · maturity maintenance
caching concurrency developer-tools backend performance go cross-platform in-memory-cache key-value-store expiration thread-safe memcached-alternative
3 sources
- readme: https://github.com/patrickmn/go-cache · fetched 2026-08-28 · 9d94a6c4308d
- homepage: https://patrickmn.com/projects/go-cache/ · fetched 2026-08-29 · 25e001366522
- site_page: https://patrickmn.com/about/life · fetched 2026-08-29 · 960a69cf616f
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| patrickmn/go-cache | main | 23 |
For agents
markdown · JSON · MCP: product_card(name="patrickmn/go-cache")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem