- work fine with redis lib
$ cargo add redispatch
use futures::prelude::*;
use redispatch::JsonSerdeCommands;
use serde::{Serialize, de::DeserializeOwned};
#[derive(Debug, DeserializeOwned)]
struct MyData {
username: String
}
let client = redis::Client::open("redis://127.0.0.1/").unwrap();
let mut con = client.get_async_connection().await?;
let serde_ret = con.get::<MyData>("mydata").await?;
Want to join us? Check out our "Contributing" guide and take a look at some of these issues:
This project is licensed under either of the following licenses, at your option:
- Apache License, Version 2.0, (LICENSE-APACHE or [http://www.apache.org/licenses/LICENSE-2.0])
- MIT license (LICENSE-MIT or [http://opensource.org/licenses/MIT])