Skip to content
Zedis

Zedis

A Redis-compatible in-memory data store written in Zig, built for learning, performance and thread safety.

Redis protocol

Speaks RESP, including pipelined commands, so redis-cli and existing Redis clients work without changes.

One executor, no store lock

All clients, parsing and command execution run on a single OS thread. Store access is serialized by construction, not by a lock.

Persistence

RDB point-in-time snapshots and an append-only file with group commit: always, everysec, or no.

Memory budgeting

Redis-style maxmemory with LRU eviction, -OOM rejection for allocating commands, and cgroup-aware sizing inside containers.

TLS 1.3

Optional TLS listener via ztls/AWS-LC, with CA configuration and optional mutual TLS through tls-auth-clients.

Observability

Real INFO counters, SLOWLOG, LATENCY, and a METRICS command that renders Prometheus text exposition.