redisx 0.0.2

Minimal and Asynchronous Redis client for Rust.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use async_std::task;
use redisx::{Client, Connection};

fn main() -> anyhow::Result<()> {
    env_logger::try_init()?;

    task::block_on(async {
        let mut conn = Connection::open("redis://").await?;

        let this_value = conn.get("this-key").await?;

        println!("this_key = {:?}", this_value);

        Ok(())
    })
}