Packages / rupm

rs-db-driver-redis-redis 0.1.0

Redis: redis (the driver, re-exported, with a runnable example)

Install

cargo add rs-db-driver-redis-redis --registry rupm

In Ruststudio: Packages, search for rs-db-driver-redis-redis, Install.

Owner: Rust Studio. Licence: MIT OR Apache-2.0. Total downloads: 0. Published 2026-11-23.

Versions

README

# rs-db-driver-redis-redis

Redis - redis: the standard async and blocking client

Add it with `rupm add rs-db-driver-redis-redis` (or `cargo add rs-db-driver-redis-redis --registry rupm`). The driver `redis` is re-exported as `rs_db_driver_redis_redis::redis`.

Also serves: Valkey, KeyDB, Dragonfly, Amazon ElastiCache, Azure Cache for Redis

This driver is async: your project also needs an async runtime, for example `cargo add tokio --features macros,rt-multi-thread`.

## Example

```rust
use redis::AsyncCommands;

#[tokio::main]
async fn main() -> redis::RedisResult<()> {
    let client = redis::Client::open("redis://127.0.0.1/")?;
    let mut con = client.get_multiplexed_async_connection().await?;
    let _: () = con.set("key", 42).await?;
    let value: i32 = con.get("key").await?;
    println!("key = {value}");
    Ok(())
}
```