redis-oxide 0.2.0

High-performance async Redis client for Rust with automatic cluster support
Documentation

redis-oxide

A high-performance, async Redis client for Rust with a focus on correctness, high-level abstractions, and ease of use.

Crates.io Docs.rs Build Status

Features

  • Async Support: Built on top of tokio for asynchronous operations.
  • Connection Pooling: Efficient connection pooling to manage multiple Redis connections.
  • Multiplexing: Support for multiplexing multiple requests over a single connection.
  • Cluster Support: Automatic cluster slot management and redirection handling.
  • Type-Safe Commands: A type-safe command API to prevent errors at compile time.
  • Error Handling: Comprehensive error handling with a clear and concise API.
  • High Performance: Optimized for high performance and low overhead.

Getting Started

Add redis-oxide to your Cargo.toml:

[dependencies]
redis-oxide = "0.2.0"

Basic Usage

use redis_oxide::{Client, ConnectionConfig};

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
    let config = ConnectionConfig::new("redis://127.0.0.1:6379")?;
    let client = Client::connect(config).await?;

    client.set("key", "value").await?;
    let value: String = client.get("key").await?;

    println!("Got value: {}", value);

    Ok(())
}

Documentation

For more detailed information, please see the documentation.

Contributing

Contributions are welcome! Please see the contributing guide for more details.

License

This project is licensed under either of the following, at your option: