memcache 0.0.9

memcached client for rust, use FFI and libmemcached
docs.rs failed to build memcache-0.0.9
Please check build logs and if you believe this is docs.rs' fault, report into this issue report.

rust-memcache

Memcached client for rust, using libmemcached and rust FFI;

Dependences

  • brew install libmemcached

Usage

let client = memcache::connect("localhost", 2333).unwrap();
client.flush(0).unwrap();

client.set_raw("foo", &[0x1u8, 0x2u8, 0x3u8], 0, 42).unwrap();

let (value, flags) = client.get_raw("foo").unwrap();
assert!(value == &[0x1u8, 0x2u8, 0x3u8]);
assert!(flags == 42);

TODO

  • build on linux
  • more command
  • multi server support
  • typed interface
  • memory leak check
  • document

License

MIT