Sign inSign up

barddoo/zedis

By barddoo

โ€ขUpdated 4 months ago

Redis implementation in Zig

Image
Databases & storage
0

752

barddoo/zedis repository overview

โ Zedis

A Redis-compatible in-memory data store written in Zigโ . Implements the core Redis protocol with a focus on simplicity, performance, and memory safety.

Source: github.com/barddoo/zedisโ 


โ Quick start

docker run -p 6379:6379 barddoo/zedis
redis-cli ping
# PONG

SET hello world
GET hello
# "world"

Works with any standard Redis client โ€” no driver changes needed.


โ Image variants

TagBaseUse case
latest, x.x.x, x.x.x-alpineAlpine 3.20Default โ€” smallest image with shell
x.x.x-slim, x.x.x-debianDebian Bookworm slimglibc compatibility
x.x.x-distrolessDistroless staticNo shell, minimal attack surface

All images are built for linux/amd64 and linux/arm64.


โ Persistent data

docker run -p 6379:6379 -v zedis-data:/var/lib/zedis/data barddoo/zedis

โ Custom config

docker run -p 6379:6379 -v ./zedis.conf:/etc/zedis/zedis.conf barddoo/zedis

Key config options:

bind 0.0.0.0
port 6379
maxclients 10000
kv-memory-budget 512mb
eviction-policy allkeys-lru
requirepass yourpassword

โ Features

  • RESP protocol โ€” compatible with redis-cli and standard Redis clients
  • GET, SET, DEL, INCR, DECR, EXISTS, EXPIRE, TTL, TYPE, KEYS, MGET, MSET, and more
  • Key expiration with background TTL handling
  • RDB snapshots and AOF persistence
  • Pub/Sub
  • Time series with Gorilla compression
  • LRU eviction with configurable memory budget
  • Single-store (no SELECT / multiple databases by design)

โ Supported platforms

linux/amd64 ยท linux/arm64

Tag summary

Content type

Image

Digest

sha256:bb2fef038โ€ฆ

Size

5.9 MB

Last updated

4 months ago

docker pull barddoo/zedis