finds.dev

nalgeon/redka

Redis re-implemented with SQL

View on GitHub

★ 4,566GoBSD-3-Clauseupdated Feb 2026

// compared · The best open source in-memory data stores and Redis alternativesSee the alternatives →

// the take

Redka reimplements Redis data structures (strings, lists, sets, hashes, sorted sets) on top of SQLite or PostgreSQL, with full RESP wire protocol compatibility. It's for Go developers who want Redis semantics without running a Redis server — either embedded in-process or as a standalone drop-in. The author is honest that it's in maintenance mode with no planned features.

ACID transactions are a genuine win over Redis — you can atomically update a hash and a relational row in the same Postgres transaction, which Redis Lua scripts can't touch. The dual-backend approach (SQLite for embedded/test, Postgres for shared state) is well thought out and the SQL views for introspection are actually useful for debugging. Test coverage is thorough — every command has its own test file, and the test helpers abstract both SQLite and Postgres so the same suite runs against both backends. The in-process server mode makes it a legitimately useful Redis test container replacement without pulling in Docker.

It explicitly doesn't aim for performance parity and the benchmarks show it — sorted set operations in particular get expensive fast because SQL ORDER BY with scoring is not the same algorithmic problem as a skip list. Pub/Sub, Streams, and Lua scripting are absent, so if your code uses any of those, this isn't a drop-in. The project is in maintenance mode as of early 2026, which means bugs get fixed but you're inheriting the current feature surface forever. Cluster and replication are non-starters — you're bound to a single Postgres or SQLite instance, so any HA story is whatever your database backend provides.

We read the README, the directory tree and a key source file in July 2026. Nobody pays to be listed. How we judge →

// at a glance

Stars
4,566
Forks
136
Language
Go
License
BSD-3-Clause
Last commit
4 Feb 2026

// nearby

If redka isn't quite it.

All repos →