hypertrie

Secure, distributed single writer key/value store

APACHE-2.0 License

Stars
11

hypertrie

Distributed single writer key/value store.

A wip rust implementation of hypertrie that uses a rolling hash array mapped trie to index key/value data.

Full docs available on docs.rs

Usage


let mut trie = hypertrie::HyperTrie::ram().await?;

let hello = trie.put("hello", b"world").await?;
let world = trie.put("hello/world", b"b").await?;

let get = trie.get("hello").await?.unwrap();
assert_eq!(hello, get);

trie.delete("hello").await?;
let get = trie.get("hello").await?;
assert_eq!(None, get);

let get = trie.get("hello/world").await?.unwrap();
assert_eq!(world, get);

References

License

Licensed under either of these: