Zedis

Opinionated Redis-compatible in-memory store written in Zig

Implements RESP with pipelining, strings, lists, time series with Gorilla compression and Bloom filters, plus RDB snapshots, AOF with group commit, pub/sub and maxmemory eviction. A single-executor command path runs with no global store lock.

  • 145,985/sSET, 100 clients
  • 140,252/sGET, 50 clients

Trade-offs

  • One store, with no logical databases and no SELECT. It drops complexity and segment memory, following Salvatore Sanfilippo's own regret, and clients relying on SELECT have to change.
  • Expiry is lazy only, checked on access and during eviction. No background sweep runs, so an untouched expired key stays in memory until then.

Q&A2

No. It is designed for learning and experimentation, and not intended for production use yet.

Reviews

Loading reviews

    More in Zig

    See all 10 →
    • EgresPostgres-compatible database in Zig for heavy, multi-tenant workloads
    • zs3S3-compatible server in a single static Zig binary under 1 MB
    • PrefabLensSemantic diffs and merges for Unity YAML assets, in GitHub, the Editor and a CLI
    • FlooAuthenticated tunneling toolkit for private services, in Zig
    • MarionetteDeterministic I/O and simulation testing library for Zig
    • resttyBrowser terminal renderer on libghostty-vt, WebGPU and WebAssembly

    More in Redis

    See all 10 →
    • RuvioRust key-value server that speaks RESP, with locks and queues as commands
    • QueueScopeNative macOS dashboard for BullMQ queues on Redis
    • CodraSelf-hosted AI code review for GitHub pull requests
    • FyroDBRedis-compatible store and PostgreSQL cache proxy in one Rust binary
    • SyncleKeeps databases in sync across engines in real time, without Kafka
    • RedisMELightweight cross-platform Redis desktop manager on Tauri

    More in Database internals

    See all 29 →
    • PaganelData migration engine that verifies the destination down to the row
    • FeOxDBEmbedded key-value store in Rust with write-behind durability
    • SNKVEmbedded key-value store built directly on SQLite's B-tree
    • musqlSQLite-compatible SQL engine on columnar storage and a JIT
    • MongrelDBEmbedded Rust database with vector, sparse and text indexes
    • MenteDBRust storage engine built for AI agent memory