Skip to content

Kilerd/redispatch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

redispatch

best serialization patch for redis

GitHub Workflow Status (with branch) Crates.io Crates.io (recent) docs.rs Crates.io

Features

  • work fine with redis lib

Installation

$ cargo add redispatch

Example

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?;

Contributing

Want to join us? Check out our "Contributing" guide and take a look at some of these issues:

License

This project is licensed under either of the following licenses, at your option:

About

No description, website, or topics provided.

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages