CachePool<K, V> class

Pool for cache holders with keys

Constructors

CachePool()

Properties

hashCode → int
The hash code for this object.
no setterinherited
keys → Iterable<K>
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

erase(K key, {double? now}) → CachePair<V>?
erase cache for key
fetch(K key, {double? now}) → CachePair<V>?
fetch cache value & its holder
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
purge({double? now}) → int
clear expired cache holders
toString() → String
A string representation of this object.
inherited
updateHolder(K key, CacheHolder<V> holder) → CacheHolder<V>
update cache holder for key
updateValue(K key, V? value, double life, {double? now}) → CacheHolder<V>
update cache value for key with timestamp in seconds

Operators

operator ==(Object other) → bool
The equality operator.
inherited