Crate dicedb_rs

Source
Expand description

§DiceDB Unofficial Rust SDK

DiceDB is an open-source, fast, reactive, in-memory database optimized for modern hardware.

DiceDB;

This is a 1.0 feature complete unofficial Rust SDK for DiceDB. To get started, you can create a new client and start interacting with the database with the following example:

use dicedb_rs::{client::Client, errors::ClientError};

fn main() -> Result<(), ClientError> {
    // Create a new client
    let mut client = Client::new("localhost".to_string(), 7379).unwrap();

    // Set a key
    client.set("Hello", "World")?;

    // Get a key
    let value = client.get("Hello")?;
    println!("Hello: {}", value);

    Ok(())
}

This SDK is a work in progress and is not yet stable. Please report any issues you encounter.

Modules§

client
Client Module
commands
Commands Module
errors
Error Module
watchstream
WatchStream Module