dicedb
v1.0.7
Published
A JavaScript client for DiceDB.
Downloads
10
Maintainers
Readme
DiceDB Client

A modern Node.js client for DiceDB — the blazing-fast, in-memory, real-time database.
📺 Demo & Introduction
🚀 Features
- Simple, promise-based API for all DiceDB commands
- Real-time subscriptions and watch support
- Lightweight and fast
- Easy integration with any Node.js project
📦 Installation
npm install dicedb🐳 Quick Start with Docker
docker run dicedb/dicedb⚡ Usage Example
import DiceDBClient from 'dicedb';
const client = new DiceDBClient(); // default: host=127.0.0.1, port=7379
await client.connect();
console.log('Connected to DiceDB');
const setResponse = await client.SET("MY_KEY", "Golchi");
console.log('Set Response:', setResponse);
const getResponse = await client.GET("MY_KEY");
console.log('Get Response:', getResponse);📚 Documentation
🛠️ Supported Commands
This client supports all major DiceDB commands, including:
GET,SET,DEL,EXISTS,EXPIRE,INCR,DECR,HSET,HGET,ZADD,ZRANGE,WATCH, and more.
See the API documentation for the full list.
📝 License
MIT
Connect. Command. Create.
Build real-time apps with DiceDB and this simple Node.js client.
