redi-rs is a Redis client written in Rust. It is a lightweight client with connection pooling and 100% memory safe. You can use it in your Rust project to connect to Redis and perform operations.
pool.setex("foo", 10, "bar")
, pool.get("foo") or pool.hset("foo", "bar", "baz")
Add this to your Cargo.toml:
toml
[dependencies]
redi-rs = "0.1.0-alpha.0"
```rust use std::net::SocketAddr; use std::str::FromStr;
use redi_rs::RedisPool;
async fn main() -> Result<(), Box
pool.max_connections(10).establish_pool().await?;
pool.send_command("SET foo bar").await?;
Ok(())
} ```
More examples can be found in the examples directory.
redi-rs is licensed under the MIT license. See LICENSE for more information.
Open an issue or a pull request.