basteh-memory

Crates.iobasteh-memory
lib.rsbasteh-memory
version0.4.0-alpha.5
sourcesrc
created_at2023-02-01 08:59:16.127335
updated_at2023-03-06 18:25:26.840851
descriptionAn implementation of basteh based on hashmap(in memory)
homepage
repositoryhttps://github.com/pooyamb/basteh/
max_upload_size
id773434
size33,947
Pouya Mobasher Behrouz (pooyamb)

documentation

https://docs.rs/basteh-memory

README

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

cargo fmt