# nalgeon/redka

Redis re-implemented with SQL

Repository: https://github.com/nalgeon/redka
Canonical: https://ross.abutalabs.com/products/redka
Language: Go
License: BSD-3-Clause
License Family: permissive
Topics: database, key-value, redis, sqlite, postgres
Last push: 2026-02-04T15:47:32+00:00

## Health v2 (maintenance only)
Score: 55/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 65, release rhythm 37, longevity 62
- inputs: {"age_days": 879, "days_push": 210, "days_rel": 210, "gap_med": 224.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 4570, forks 136 (observed 2026-08-28T04:08:53.610152+00:00)

## What it is
Redka reimplements the core parts of Redis (strings, lists, sets, hashes, sorted sets) on top of SQL backends like SQLite or PostgreSQL, while remaining compatible with the Redis API and wire protocol. It can run as a standalone Redis-compatible server or as an in-process Go module.

## Use cases
- embedded key-value cache for Go applications without running a separate Redis server
- lightweight Redis replacement for local development and integration tests
- in-memory database alternative to Redis test containers
- Redis-like data structures backed by an existing PostgreSQL database
- querying key-value data with SQL views for analysis and reporting
- ACID-transactional key-value store for data that doesn't fit in RAM

## When to choose
- your Go app needs Redis-like features embedded in-process
- you want Redis semantics with durable, disk-backed SQL storage
- you need a fast, isolated Redis stand-in for testing
- you prefer managing everything in PostgreSQL with transactional guarantees

## When to avoid
- you need raw Redis performance or very high throughput
- you rely on Redis features beyond the five core data types (pub/sub, streams, etc.)
- you need actively developed new features, since the project is in maintenance mode
- you need a battle-tested store for critical production workloads

## Facets
- artifact type: library
- maturity: maintenance
- function: database, caching, http-server
- domain: databases, developer-tools, backend
- platform: go, cross-platform, cli, self-hosted
- tags: redis-compatible, sqlite, postgresql, key-value-store, resp-protocol, embedded-database

## Member repositories
- nalgeon/redka (main) score 55

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:53.610152+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-29T18:19:57.307639+00:00, confidence not recorded.
  - readme: https://github.com/nalgeon/redka (fetched 2026-08-28T04:08:53.610152+00:00, sha 36d2591808ae)
- Data as of 2026-08-30T08:39:29.467469+00:00.
