DiceDB is a low-latency key-value engine built on Valkey, staying compatible with Redis and Valkey clients. It adds query subscriptions and tiered memory-to-disk storage.
Overview
DiceDB extends Valkey, which itself forks Redis, while aiming to remain compatible with existing Redis and Valkey SDKs and tooling. The server behaves like a familiar in-memory datastore but adds capabilities on top of the Valkey foundation.
Query subscriptions let clients use OBSERVE-style commands to receive push updates when matching data changes instead of polling. A spill module can move evicted keys to disk—by default using RocksDB—and restore them on cache misses, giving a multi-tier storage layout with configurable memory limits.
The official Docker image is positioned as the fastest way to start, with optional explicit memory and spill limits. You can also build from source on Linux, macOS, and several BSD variants, then run the server with default settings, a configuration file, or inline options. Clients include dicedb-cli and other Redis-compatible tools.
Supported structures include strings, hashes, lists, sets, sorted sets, and HyperLogLog, covering caching, messaging, and related workloads described on the project site.
Key features
- Redis and Valkey protocol compatibility
- OBSERVE query subscriptions
- Disk spill for evicted keys
- Official preconfigured Docker image
- Strings through sorted sets and HyperLogLog
- Configurable memory and spill limits
- dicedb-cli and compatible clients
Use cases
- Caching with larger-than-RAM datasets
- Real-time push on data changes
- Drop-in Redis-compatible backend
- Message queue style workloads
- Self-hosted key-value on Docker
Does the same job as
DiceDB doesn't name these products itself, but its own description shows it does the same job.