2 releases
new 0.1.1 | Nov 6, 2024 |
---|---|
0.1.0 | Nov 6, 2024 |
#8 in #data-structure
138 downloads per month
7KB
hat-trie-cache
A Rust implementation of a HAT-trie based cache.
Usage
Add this to your Cargo.toml
:
[dependencies]
hat-trie-cache = "0.1"
Example
let result = hat_trie_cache::add(40, 2);
assert_eq!(result, 42);
For more examples, see the examples directory.
Running Examples
cargo run --example basic
Dependencies
~2.1–7.5MB
~51K SLoC