[][src]Crate perkv

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

This is in a beta state at the moment.

Basic usage:

let test_store = perkv::KV::<String, String>::new("./basic.cab").unwrap();

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

Raw usage:

let test_store = perkv::RawKV::<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());

Structs

KV

The type that represents the key-value store

RawKV

The type that represents a raw key-value store

Type Definitions

PRes