#hash-map #async #web #storage

basteh-memory

An implementation of basteh based on hashmap(in memory)

2 releases

0.4.0-alpha.5 Mar 6, 2023
0.4.0-alpha.4 Feb 6, 2023
0.4.0-alpha.2 Feb 1, 2023

#1495 in HTTP server

MIT/Apache

80KB
1.5K SLoC

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();

Dependencies

~4–10MB
~98K SLoC