Skip to content

Latest commit

 

History

History
47 lines (30 loc) · 1.4 KB

README.md

File metadata and controls

47 lines (30 loc) · 1.4 KB

hypertrie

Build Crates.io Documentation

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: