Skip to content

redka

Redis-compatible key-value store backed by SQLite or PostgreSQL, for Go apps and tests

Permissive (OSI) · BSD-3-Clause
  • macOS
  • Linux
  • CLI

Listed by , founder & editor

32

Health

Dormant

Overview

Stars

4,567

Last commit

10 months ago

Feb 2026

Repository age

2 years

since Apr 2024

Latest version

v1.0.1

Feb 2026

Contributors

–

Releases

1

last 12 months

Docker pulls

6.9k

nalgeon/redka

Language

Go

Redka reimplements the core of Redis on top of SQL. It speaks the Redis wire protocol (RESP) and supports the common commands, so existing Redis clients can talk to it. Data lives in SQLite or PostgreSQL, so it does not have to fit in RAM, and operations run inside ACID transactions.

You can run it two ways: as a standalone server, or in-process as a Go module. The in-process mode suits embedded caches and fast, isolated tests with an in-memory database. It supports five data types: strings, lists, sets, hashes and sorted sets. It also covers key management, connection commands and transactions. Data sits in a plain relational schema with SQL views, so you can query it with ordinary SQL for analysis and reporting.

Redka is written in Go, licensed BSD-3-Clause, and ships a Docker image and a Homebrew formula. It is not built for raw speed. It handles tens of thousands of operations per second. It is in maintenance mode, with no new features planned. It is a lightweight alternative to running a Redis server for small or non-critical workloads.

Who it's for

Go developers who need an embedded key-value store

It runs in-process and gives you Redis data structures without a separate server.

Skip if: You need the highest possible throughput or a full Redis feature set.

Teams that test against Redis in CI

An in-memory backend gives each test run its own isolated store, without test containers.

Skip if: Your tests rely on Redis modules or commands outside the core five data types.

PostgreSQL-first shops that want Redis-style structures

It stores them in your existing database, so you manage everything with the same tools.

Skip if: You already run Redis and need its speed and clustering.

The problem it solves

Running a separate Redis server for small apps, local development or tests adds setup and upkeep. Redka gives you the Redis API on top of a database you already use, such as SQLite or PostgreSQL.

Strengths

  • Speaks the Redis wire protocol, so existing Redis clients can connect
  • Data is stored in SQLite or PostgreSQL and does not have to fit in RAM
  • ACID transactions and SQL views for analysis and reporting
  • Runs as a standalone server or in-process as a Go module
  • Docker image and Homebrew formula available

Trade-offs

  • In maintenance mode; no new features are planned
  • Slower than Redis because it uses a general-purpose SQL backend
  • Covers only core commands and five data types
  • Recommended for testing and non-critical production use

redka replaces

Self-host redka

Self-hostable
Yes
Docker image
nalgeon/redka

In the community

Frequently asked questions

Is Redka free?

Yes. It is open source under the BSD-3-Clause license.

Can I use my existing Redis client?

Yes. Redka implements the Redis wire protocol (RESP) and the core Redis commands.

Which databases does it use?

It stores data in SQLite or PostgreSQL.

Can I embed it in my application?

Yes. It works as a Go module in-process, or as a standalone server.

Is it still developed?

It is in maintenance mode, and no new features are planned.

Other Redis alternatives

Compare all 5 Redis alternatives →

Similar tools in NoSQL databases

Milvus

NoSQL databases

Distributed vector database for similarity search in AI applications

47k 4.3k today Thriving Apache-2.0

Redis Insight

NoSQL databases

Desktop and Docker GUI for browsing, querying and tuning Redis databases

8.9k 496 today Thriving SSPL-1.0

Valkey

NoSQL databases

BSD-licensed, Redis-compatible key-value store governed by the Linux Foundation

28k 1.5k today Thriving BSD-3-Clause

Replaces Redis

TDengine

NoSQL databases

Time-series database for IoT and industrial data, with clustering and built-in streaming

25k 5k 21 days ago Thriving AGPL-3.0

TimescaleDB

NoSQL databases

PostgreSQL extension for time-series and event data analytics, for teams that want to

24k 1.2k today Thriving Apache-2.0

TiKV

NoSQL databases

Distributed transactional key-value database for teams needing scalable storage

17k 2.4k today Thriving Apache-2.0

Replaces Amazon DynamoDB