actix-storage-dashmap

Crates.ioactix-storage-dashmap
lib.rsactix-storage-dashmap
version0.3.0
sourcesrc
created_at2020-11-02 22:27:37.001679
updated_at2023-01-11 23:22:59.017545
descriptionAn implementation of actix-storage based on dashmap
homepage
repositoryhttps://github.com/pooyamb/actix-storage/
max_upload_size
id308079
size30,888
Pouya Mobasher Behrouz (pooyamb)

documentation

https://docs.rs/actix-storage-dashmap

README

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);
Commit count: 192

cargo fmt