#store #index #hash-map #persistent #low-level #api #persy

yanked persawkv

Simple persistent low-level HashMap/Key-value store

0.0.0-alpha.1 Oct 28, 2019
0.0.0-alpha.0 Oct 27, 2019

#143 in #persistent


Used in perkv

MIT license

12KB
250 lines

persawkv

crates.io version Build status Documentation License

Simple persistent generic HashMap/key-value store. It is a relatively shim wrapper around the Persy Index API. This crate only supports types as keys/values which are directly supported by the Persy Index API itself.

This is in a beta state at the moment.

Basic usage:

let test_store = persawkv::KV::<String, String>::new("./raw.cab", "runint").unwrap();

let _ = test_store.insert("key".to_string(), "value".to_string());
println!("{:?}", test_store.get(&"key".to_string()));
let _ = test_store.remove("key".to_string());

lib.rs:

Simple persistent generic HashMap/Key-value store, using the Persy Index API.

This is in a beta state at the moment.

usage:

use persawkv::prelude::*;
let test_store = persawkv::SingleKV::<String, String>::new("./raw.cab", "runint").unwrap();

let _ = test_store.insert("key".to_string(), "value".to_string());
println!("{:?}", test_store.get(&"key".to_string()));
let _ = test_store.remove("key".to_string());

Dependencies

~4.5MB
~93K SLoC