#binding #key-value #store

k2hash

Rust binding for k2hash

1 unstable release

Uses old Rust 2015

0.0.1 Jan 7, 2017

#314 in #binding

MIT license

4KB
82 lines

rust-k2hash

Rust binding of yahoojapan/k2hash

Examples

  • Open and store a new key/value:
extern crate k2hash;
use k2hash;

fn main() {
    let path = std::path::Path::new("/tmp/tmp.k2hash");
    let k2hash = K2Hash::new(path, false, false, true, 8, 4, 32, 128).unwrap();

    k2hash.set_str("key".to_string(), "value".to_string());
    let value = k2hash.get_str("key".to_string()).unwrap();
}

License

MITL

Dependencies

~44KB