1 use mini_redis::{client, Result};
4 async fn main() -> Result<()> {
5 // Open a connection to the mini-redis address.
6 let mut client = client::connect("127.0.0.1:6379").await?;
8 // Set the key "hello" with value "world"
9 client.set("hello", "world".into()).await?;
12 let result = client.get("hello").await?;
14 println!("got value from the server; result={:?}", result);