HUB
Sign inSign up

alsatianco/peadb-server

By alsatianco

•Updated 8 months ago

A high-performance, drop-in Redis replacement written in C++20 with RESP2/RESP3 support

Image
Developer tools
Databases & storage
0

10K+

alsatianco/peadb-server repository overview

⁠PeaDB

A high-performance, drop-in replacement for Redis, written in modern C++20.

PeaDB aims to be behaviorally indistinguishable from Redis 7.2.5, using the same wire protocol, command surface, and edge-case semantics while targeting strong performance on modern multi-core systems.

⁠Features

  • Full RESP2 and RESP3 protocol support
  • Works with existing Redis clients and tools
  • Around 147 implemented commands across core Redis data types
  • Persistence with RDB snapshots and AOF logging
  • PSYNC2-based replication with multi-replica support
  • Cluster support with slot routing and redirection
  • Lua scripting support including EVAL, EVALSHA, FUNCTION, and FCALL
  • Partial Redis Modules API support with runtime .so loading
  • Docker image published at alsatianco/peadb-server

⁠Quick Start

docker run -d --name peadb -p 6379:6379 alsatianco/peadb-server:latest

Connect with any Redis client:

redis-cli -p 6379
127.0.0.1:6379> SET hello world
OK
127.0.0.1:6379> GET hello
"world"

⁠Data Persistence

PeaDB stores persistent data in /data inside the container. Mount a volume to keep data across restarts:

docker run -d --name peadb -p 6379:6379 -v peadb-data:/data alsatianco/peadb-server:latest

⁠Docker Compose

services:
  peadb:
    image: alsatianco/peadb-server:latest
    ports:
      - "6379:6379"
    volumes:
      - peadb-data:/data
    restart: unless-stopped

volumes:
  peadb-data:

⁠Configuration

Pass Redis-style flags directly to the container command:

docker run -d -p 6379:6379 alsatianco/peadb-server:latest \
  --port 6379 \
  --bind 0.0.0.0 \
  --loglevel info \
  --dir /data

Common options:

FlagDefaultDescription
--port6379Listening port
--bind0.0.0.0Bind address
--loglevelinfoLog level: error, warn, info, debug
--dir/dataData directory for snapshots and AOF
--dbfilenamedump.rdbRDB snapshot filename

Published Docker tags at the time of writing:

  • alsatianco/peadb-server:latest
  • alsatianco/peadb-server:0.1

⁠Image Details

⁠Source

GitHub repository:

https://github.com/alsatianco/peadb/⁠

⁠License

See the LICENSE file in the source repository.

Tag summary

Content type

Image

Digest

sha256:c91fb9448…

Size

29.2 MB

Last updated

8 months ago

docker pull alsatianco/peadb-server