Crates.io | actix-storage-dashmap |
lib.rs | actix-storage-dashmap |
version | 0.3.0 |
source | src |
created_at | 2020-11-02 22:27:37.001679 |
updated_at | 2023-01-11 23:22:59.017545 |
description | An implementation of actix-storage based on dashmap |
homepage | |
repository | https://github.com/pooyamb/actix-storage/ |
max_upload_size | |
id | 308079 |
size | 30,888 |
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
is a simple store without expiration functionality.
DashMapActor
is a full expiry_store implementation available under actor
feature.
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);