redisclient 0.1.2

Redis client for Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use redisclient::RedisClient;

#[test]
pub fn test_echo() {
    let mut client = RedisClient::new().unwrap();

    let resp = client.echo("Hello world").unwrap();
    assert_eq!(resp, "Hello world".to_string());
}

#[test]
pub fn test_ping() {
    let mut client = RedisClient::new().unwrap();

    let _ = client.ping().unwrap();
}