hiredis 0.2.3

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),
};

Contributing

  1. Fork the project.
  2. Implement your idea.
  3. Open a pull request.