alicebob/miniredis
Pure Go Redis server for Go unittests observed · 2026-10-07
Health v2 · maintenance only
87/100
- Activity 96
- Release rhythm 69
- 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: 94.0
- age_days: 4430
- days_rel: 48
- days_push: 24
- n_releases_24m: 7
Adoption not part of the score
3623 stars · 261 forks observed · 2026-10-07
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-10-07 · c68ad7f34ee9
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| alicebob/miniredis | main | 87 |
For agents
markdown · JSON · MCP: product_card(name="alicebob/miniredis")
Data as of 2026-10-19T08:05:51.212177+00:00 · Report a problem