valkeyree 0.1.7

An async Rust Valkyrie that speaks RESP — carrying your commands between realms of Valkey.
Documentation

Valkeyree

Valkeyree — the messenger between realms.

She rides the async winds of Tokio, delivering your commands from Rust to Valkey in pure RESP form — fearless, fast, and forged in Rust. ⚡

A modern Rust library for crafting, sending, and decoding Valkey commands — elegant, async, and fearless.

Installing

cargo add valkeyree

Crates IO: https://crates.io/crates/valkeyree

✨ Features

  • ⚡ Async I/O powered by Tokio
  • 🧱 Low-level RESP2/RESP3(In the future) encoder & decoder
  • 🧩 Command builders and typed result enums
  • 🔐 Authentication & ACL-ready
  • 🚀 Built for pipelining and future Valkey releases

Usage

let config = ConnectionConfig {
    address: "127.0.0.1:6379".to_string(),
    username: Some("myapp".to_string()),
    password: Some("password123".to_string()),
};
// Create a new client
let client = Client::new(config).await?;
// Send a SET command
let set_command = CommandKind::Set("myclient".into(), Value::String("hey".into()));
let result = client.send(set_command).await?;
// Send a GET command
let get_command = CommandKind::Get("myclient".into());
let result = client.send(get_command).await?;

License

See LICENSE for details.