Skip to main content

Module mem_client_storage

Module mem_client_storage 

Source
Expand description

§In-memory ClientStorage implementation

A HashMap<String, HashMap<String, Entry>> that implements the crate::client::client_storage::client_storage::ClientStorage trait. Each inner map is one bucket; each Entry carries the compressed value and a last_accessed timestamp. When a bucket exceeds its crate::client::client_storage::client_storage::BUCKET_TRIMS cap, the oldest-accessed entries are dropped.

Used by tests (including the integration-test harness) and by any deployment that explicitly opts out of on-disk persistence.

Structs§

MemClientStorage