CachePool<K, V> class
Pool for cache holders with keys
Constructors
Properties
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