hiredis 0.1.0

The package provides an interface to Hiredis.
docs.rs failed to build hiredis-0.1.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build: hiredis-0.3.1

Hiredis Build Status

The package provides an interface to Hiredis.

Documentation

Example

Assuming that Redis is installed and is listening to port 4242, the example given below can be ran using the following command:

cargo run --example workflow
extern crate hiredis;

fn main() {
    let mut context = hiredis::connect("127.0.0.1", 4242).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.