Crates.io | basteh-memory |
lib.rs | basteh-memory |
version | 0.4.0-alpha.5 |
source | src |
created_at | 2023-02-01 08:59:16.127335 |
updated_at | 2023-03-06 18:25:26.840851 |
description | An implementation of basteh based on hashmap(in memory) |
homepage | |
repository | https://github.com/pooyamb/basteh/ |
max_upload_size | |
id | 773434 |
size | 33,947 |
This crate provides implementations for basteh based on std lib's hashmap.
Please refer to basteh crate documentations for full details about usage and use cases.
MemoryBackend
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.
use basteh_memory::MemoryBackend;
let store = MemoryBackend::start(2048);
// OR
let store = MemoryBackend::start_default();