alicebob/miniredis
Pure Go Redis server for Go unittests observed · 2026-08-28
Health v2 · maintenance only
89/100
- Activity 98
- Release rhythm 71
- 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: 75
- age_days: 4382
- days_rel: 113
- days_push: 17
- n_releases_24m: 6
Adoption not part of the score
3601 stars · 255 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
Miniredis is a pure Go implementation of (parts of) the Redis server designed for use in Go unit tests. It runs an in-memory Redis server with a real TCP interface inside the test process, acting like net/http/httptest for Redis.
Use cases
- test Go code that talks to Redis without a real Redis server
- run Redis-dependent unit tests in CI without external binaries
- inspect and seed Redis data directly in tests
- replace Redis mock code with a real protocol server
- test Redis commands like GET, SET, hashes, lists, sets, sorted sets, and pub/sub
When to choose
- you need fast, dependency-free Redis behavior in Go unit tests
- you want to query stored values directly from the test process
- your CI pipeline cannot install or run a real Redis binary
When to avoid
- you need full Redis feature coverage, persistence, clustering, or exact production behavior
- you are writing integration tests where a real Redis instance is available
- your application uses Redis commands Miniredis does not implement
Facets
library · maturity stable
testing mocking database testing databases developer-tools go cross-platform redis in-memory unittest test-double go-testing
1 source
- readme: https://github.com/alicebob/miniredis · fetched 2026-08-28 · c68ad7f34ee9
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| alicebob/miniredis | main | 89 |
For agents
markdown · JSON · MCP: product_card(name="alicebob/miniredis")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem