6 releases
0.3.0 | Jan 11, 2023 |
---|---|
0.2.0 | Mar 26, 2021 |
0.1.1 | Nov 4, 2020 |
#1215 in HTTP server
23 downloads per month
99KB
2K
SLoC
actix-storage-dashmap
This crate provides implementations for actix-storage based on dashmap.
Please refer to actix-storage crate documentations for full details about usage and use cases.
There are 2 different implementers available in this crate
DashMapStore
DashMapStore
is a simple store without expiration functionality.
DashMapActor
DashMapActor
is a full expiry_store implementation available under actor
feature.
Implementation details
DashMapActor
is a SyncActor
running in a thread-pool by actix which uses delay-queue
crate internally in a thread for expiration notifications.
It is possible to specify the number of instances being used in thread-pool, and the default capacity of dashmap is also configurable.
let store = DashMapActor::start_default(THREADS_NUMBER);
// OR
let store = DashMapActor::with_capacity(100).start(THREADS_NUMBER);
Dependencies
~16–27MB
~460K SLoC