Expand description
[dependencies.redisclient]
version = "*"
If you want use the Git version:
[dependencies.redisclient]
git = "https://github.com/ltoddy/redis-rs.git"
§simple usage
extern crate redisclient;
use redisclient::RedisResult;
use redisclient::RedisClient;
fn run() -> RedisResult<()> {
let mut client = RedisClient::new()?;
client.mset(vec![("key1", 1), ("key2", 2)])?;
let values: Vec<String> = client.mget(vec!["key1", "key2"])?;
println!("values -> {:?}", values);
let values: Vec<isize> = client.mget(vec!["key1", "key2"])?;
println!("values -> {:?}", values);
Ok(())
}
Re-exports§
pub use client::RedisClient;
pub use error::ErrorKind;
pub use error::RedisError;