pub type DashMapStateStore<K> = DashMap<K, InMemoryState>;Expand description
A concurrent, thread-safe and fairly performant hashmap based on DashMap.
Aliased Type§
pub 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