Skip to content

A modern, async library for crafting, sending, and decoding Valkey commands — elegant in design and type-safe in execution.

License

Notifications You must be signed in to change notification settings

j-p-d-e-v/valkyree

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A modern, async library for crafting, sending, and decoding Valkey commands — elegant in design and type-safe in execution.

Topics

Resources

License

Stars

Watchers

Forks

Languages