# coocood/freecache

A cache library for Go with zero GC overhead.

Repository: https://github.com/coocood/freecache
Canonical: https://ross.abutalabs.com/products/freecache
Language: Go
License: MIT
License Family: permissive
Last push: 2026-03-19T11:56:56+00:00

## Health v2 (maintenance only)
Score: 79/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 73, release rhythm 75, longevity 100
- inputs: {"age_days": 4144, "days_push": 167, "days_rel": 167, "gap_med": 18.0, "n_releases_24m": 3}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 5403, forks 411 (observed 2026-08-28T04:09:17.558172+00:00)

## What it is
FreeCache is an in-memory key-value cache library for Go that stores data in preallocated ring buffers to achieve zero garbage collection overhead. It supports hundreds of millions of entries with expiration, near-LRU eviction, and high-concurrency thread-safe access.

## Use cases
- cache millions of objects in Go without GC pauses
- replace built-in Go map caching to reduce GC pressure
- in-process cache with TTL expiration
- high-concurrency thread-safe local cache
- limit memory usage of a Go application cache
- run a lightweight Redis-like cache server

## When to choose
- your Go service caches many long-lived objects and suffers GC latency
- you need strict memory bounds and expiration in a local cache
- you want a pure Go, dependency-free caching library

## When to avoid
- you need a distributed or shared cache across processes (use Redis)
- you need rich data structures beyond byte key-value pairs
- you cache only a small number of entries where a plain map suffices

## Facets
- artifact type: library
- maturity: stable
- function: caching
- domain: databases, performance, developer-tools
- platform: go, cross-platform
- tags: in-memory-cache, zero-gc-overhead, lru, thread-safe, key-value-store

## Member repositories
- coocood/freecache (main) score 79

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:17.558172+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:57:48.325927+00:00, confidence not recorded.
  - readme: https://github.com/coocood/freecache (fetched 2026-08-28T04:09:17.558172+00:00, sha c7b674b362de)
- Data as of 2026-08-30T08:39:29.467469+00:00.
