Type Alias governor::state::keyed::DashMapStateStore
source · pub type DashMapStateStore<K> = DashMap<K, InMemoryState>;
Expand description
A concurrent, thread-safe and fairly performant hashmap based on DashMap
.
Aliased Type§
struct DashMapStateStore<K> { /* private fields */ }
Trait Implementations§
source§impl<K: Hash + Eq + Clone> ShrinkableKeyedStateStore<K> for DashMapStateStore<K>
impl<K: Hash + Eq + Clone> ShrinkableKeyedStateStore<K> for DashMapStateStore<K>
source§fn retain_recent(&self, drop_below: Nanos)
fn retain_recent(&self, drop_below: Nanos)
Remove those keys with state older than
drop_below
.source§fn shrink_to_fit(&self)
fn shrink_to_fit(&self)
Shrinks the capacity of the state store, if possible. Read more