Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
D

dicedb

> 数据库
Open source

Open-source, low-latency key/value engine built on Valkey with query subscriptions and hierarchical storage tiers.

10.8K stars0 likes1 views
WebsiteGitHub

About

Open-source, low-latency key/value engine built on Valkey with query subscriptions and hierarchical storage tiers.

DiceDB

DiceDB is a fork of Valkey (a fork of Redis). DiceDB extends Valkey with additional capabilities while staying fully compatible with Valkey and Redis tooling and SDK ecosystem.

This is a quick start guide. For full documentation, visit dicedb.io.

DiceDB builds on Valkey, so you may still see Valkey references in logs, metrics, and parts of the codebase.

[!NOTE] DiceDB originally started as a Golang-based storage engine and offered reactivity and higher throughput as its core offering. That implementation is now archived: dice-legacy. Selected features from the legacy engine will be gradually ported into the current codebase.

Get Started

The quickest and easiest way to start using DiceDB is with the official Docker image. It comes with everything pre-configured, so you can get up and running in seconds without worrying about setup details.

bash
docker run \
    --name dicedb-001 \
    -p 6379:6379 -v $(pwd)/data:/data/ \
    dicedb/dicedb

This command starts a DiceDB container with the spill module already enabled. By default, the spill module uses RocksDB and is configured with a maximum memory limit of 250MB.

Custom Configuration

If you prefer not to use the defaults and want to explicitly configure DiceDB, you can run DiceDB with explicit configuration

bash
docker run \
    --name dicedb-001 \
    -p 6379:6379 -v $(pwd)/data:/data/ \
    dicedb/dicedb \
    dicedb-server \
      --port 6379 \
      --maxmemory 500mb \
      --protected-mode no

This configuration sets:

  • DiceDB max memory limit to 500MB
  • Spill memory limit to 250MB

Running First Command

Once the container is running, connect to it, run the DiceDB CLI, and execute the commands.

bash
$ docker exec -it dicedb-001 dicedb-cli
> ping
> set foo bar
> get foo
> incr counter

What's Different

DiceDB extends Valkey with the following key capabilities:

  • dicedb-spill - transparently persists evicted keys to disk and restores them on cache misses, enabling larger working sets within fixed memory budgets.

Building DiceDB from Source

DiceDB supports Linux, macOS, OpenBSD, NetBSD, and FreeBSD. Both little-endian and big-endian systems are supported, including 32-bit and 64-bit architectures.

Basic build:

make
make test

For additional build and configuration options, refer to DiceDB documentation.

Running DiceDB

Start server with default configuration:

./src/dicedb-server

Start with a configuration file:

./src/dicedb-server /path/to/valkey.conf

You can also pass configuration options directly:

./src/dicedb-server --port 9999 --replicaof 127.0.0.1 6379
./src/dicedb-server --loglevel debug

For advanced configuration, refer to DiceDB or Valkey documentation.

Using DiceDB

Use dicedb-cli or any compatible client.

Example:

./src/dicedb-cli

> ping
> set foo bar
> get foo
> incr counter

Support

DiceDB has a strong vision and roadmap. If you find DiceDB useful, please consider supporting us by starring this repo and sponsoring us on GitHub.

Issues· 132 open

View all issuesOpen on GitHub
  • #1815

    [BUG] dicedb-spill source repository is unavailable while Spill is shipped in official DiceDB distribution

    Updated Aug 31, 2026
  • #1787

    DiceDB Proxy

    Updated Jun 7, 2026
  • #1774

    Create a repository for the official SDK Node.js

    Updated Jun 18, 2025
  • #1669

    Will there be support of NodeJS applications in DiceDB?

    Updated Jun 18, 2025
  • #642

    Add support for command `COMMAND GETKEYSANDFLAGS`

    good first issuenew -- commanddifficulty-level -- easystack -- goUpdated Jun 17, 2025
  • #1773

    [feature request] connect via unix sockets?

    Updated Jun 16, 2025
  • #1630

    Integration Tests for H* Commands

    Updated Jun 9, 2025
  • #869

    Make ID generation per-worker make it lock-free

    Updated Jun 9, 2025
  • #1755

    Homebrew release for DiceDB

    Updated Jun 3, 2025
  • #1764

    Refactor WAL Replay Loop and Improve EOF Handling in `ReplayCommand`

    Updated Jun 2, 2025

> Tags

Ccachedatabasekey-valuekey-value-store

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 28, 2026
Category数据库
PricingOpen source

> Related tools

P
PostgreSQL
功能强大的开源关系型数据库
R
Redis
内存数据结构存储,常用作缓存与队列
M
MySQL
广泛使用的开源关系型数据库