Expand description
§basteh-memory
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.
§Implementation details
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();Structs§
- Memory
Backend - An implementation of
ExpiryStorebased on Arc-Mutex-Hashmap using tokio’s delayqueue for expiration.