hiredis 0.3.1

The package provides an interface to Hiredis.
Documentation

Hiredis Version Status

The package provides an interface to Hiredis.

Documentation

Example

use hiredis::Reply;

let mut context = hiredis::connect("127.0.0.1", 6379).unwrap();

match context.command(&["SET", "greeting", "Hi, there!"]).unwrap() {
    Reply::Status(_) => {},
    _ => assert!(false),
}

match context.command(&["GET", "greeting"]).unwrap() {
    Reply::Bulk(bytes) => println!("{}", String::from_utf8(bytes).unwrap()),
    _ => assert!(false),
};

Contribution

Your contribution is highly appreciated. Do not hesitate to open an issue or a pull request. Note that any contribution submitted for inclusion in the project will be licensed according to the terms given in LICENSE.md.