# maypok86/otter

A high performance caching library for Go

Repository: https://github.com/maypok86/otter
Canonical: https://ross.abutalabs.com/products/maypok86-otter
Homepage: https://maypok86.github.io/otter/
Language: Go
License: Apache-2.0
License Family: permissive
Topics: cache, go, performance, w-tinylfu
Last push: 2026-06-19T06:32:33+00:00

## Health v2 (maintenance only)
Score: 77/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 88, release rhythm 62, longevity 78
- inputs: {"age_days": 1100, "days_push": 75, "days_rel": 254, "gap_med": 14, "n_releases_24m": 8}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2672, forks 69 (observed 2026-08-28T04:07:09.569601+00:00)

## What it is
Otter is a high-performance in-memory caching library for Go based on adaptive W-TinyLFU eviction. It offers a configurable API with size-based eviction, time-based expiration, automatic loading, async refresh, write-through, and statistics.

## Use cases
- add a fast in-memory cache to a Go service
- improve cache hit rates over LRU
- cache with TTL expiration and size limits
- automatically load and refresh cached entries
- reduce memory overhead of caching in Go

## When to choose
- you need a high-throughput, high-hit-rate cache in Go
- you want Caffeine-like caching features in Go
- memory overhead matters at large cache capacities

## When to avoid
- you need a distributed or shared cache across processes
- your project is not in Go
- you need persistent caching

## Facets
- artifact type: library
- maturity: active
- function: caching
- domain: performance, developer-tools, backend
- platform: go, cross-platform
- tags: in-memory-cache, w-tinylfu, eviction, expiration, cache-loading, refresh-ahead

## Member repositories
- maypok86/otter (main) score 77

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:09.569601+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-30T02:18:06.764535+00:00, confidence not recorded.
  - readme: https://github.com/maypok86/otter (fetched 2026-08-28T04:07:09.569601+00:00, sha 6cd9efc05d0c)
  - homepage: https://maypok86.github.io/otter/ (fetched 2026-08-29T10:00:37.886340+00:00, sha a800fce96c0f)
- Data as of 2026-08-30T08:39:29.467469+00:00.
