CacheHolder<V> class

Holder for cache value with times in seconds

Constructors

CacheHolder(V? cacheValue, double cacheLifeSpan, {double? now})

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
value → V?
no setter

Methods

isAlive({double? now}) → bool
check whether cache is alive with current time in seconds
isDeprecated({double? now}) → bool
check whether cache is deprecated with current time in seconds
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
renewal(double? duration, {double? now}) → void
renewal cache with a temporary life span and current time in seconds
toString() → String
A string representation of this object.
inherited
updateValue(V? newValue, {double? now}) → void
update cache value with current time in seconds

Operators

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