|0.3.0||Jan 11, 2023|
|0.2.0||Mar 26, 2021|
|0.1.1||Nov 4, 2020|
#41 in #hashmap
28 downloads per month
This crate provides implementations for actix-storage based on std lib's hashmap.
Please refer to actix-storage crate documentations for full details about usage and use cases.
There are 2 different implementers available in this crate
HashMapStore is a simple store without expiration functionality.
HashMapActor is a full expiry_store implementation available under
HashMapActor is an
AsyncActor running in actix's arbiter which uses tokio's
delayqueue internally for expiration notifications.
It is possible to specify the size for the underlying channel between tokio's
delayqueue and the actor. The default capacity of hashmap is also configurable.
let store = HashMapActor::with_capacity(10_000).start(); // OR let store = HashMapActor::with_channel_size(16, 16).start(); // OR let store = HashMapActor::with_capacity_and_channel_size(10_000, 16, 16).start();