pub type DashMapStateStore<K, S = DefaultHasher> = DashMap<K, InMemoryState, S>;Expand description
A concurrent, thread-safe and fairly performant hashmap based on DashMap.
Aliased Type§
pub struct DashMapStateStore<K, S = DefaultHasher> { /* private fields */ }Trait Implementations§
Source§impl<K: Hash + Eq + Clone, S: BuildHasher + Clone> ShrinkableKeyedStateStore<K> for DashMapStateStore<K, S>
impl<K: Hash + Eq + Clone, S: BuildHasher + Clone> ShrinkableKeyedStateStore<K> for DashMapStateStore<K, S>
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