moka-cht
moka-cht provides a lock-free hash table that supports fully concurrent lookups, insertions, modifications, and deletions. The table may also be concurrently resized to allow more elements to be inserted. moka-cht also provides a segmented hash table using the same lock-free algorithm for increased concurrent write performance.
Usage
Add this to your Cargo.toml
:
= "0.5"
Then in your code:
use HashMap;
use ;
let map = new;
let threads: =
.map
.collect;
let _: = threads.into_iter.map.collect;
License
moka-cht is distributed under either of
- The MIT license
- The Apache License (Version 2.0)
at your option.
See LICENSE-MIT and LICENSE-APACHE for details.
Credits
moka-cht is a fork for cht v0.4.1. We have created this fork to provide better integration with Moka cache via a non default Cargo feature.
cht is authored by Gregory Meyer and its v0.4.1 and earlier versions are licensed under the MIT license.