Installation
DiceDB is an open source, reactive, scalable, highly available, unified cache optimized for modern hardware.
Setting up DiceDB server
Using Docker
The easiest way to get started with DiceDB is using Docker by running the following command.
docker run -p 7379:7379 dicedb/dicedb --enable-watch
The above command will start the DiceDB server running locally on the port 7379
and you can connect
to it using DiceDB CLI and SDKs.
Build from source
git clone https://github.com/dicedb/dicecd dicemake build
The above command will create a binary dicedb
. Execute the binary and that will
start the DiceDB server.
Setting up CLI
Using cURL
The best way to connect to DiceDB is using DiceDB CLI and you can install it by running the following command
sudo sucurl -sL https://raw.githubusercontent.com/DiceDB/dicedb-cli/refs/heads/master/install.sh | sh
If you are working on unsupported OS (as per above script), you can always follow the installation instructions mentioned in the dicedb/cli repository.
Building from source
git clone https://github.com/DiceDB/dicedb-clicd dicedb-climake build
The above command will create a binary dicedb-cli
. Execute the binary will
start the CLI and will try to connect to the DiceDB server.