CacheEntry class

Data object to store cached values with their keys used by MemoryCache

Constructors

CacheEntry(String key, dynamic value, int timeout)
Creates a new instance of the cache entry and assigns its values. [...]

Properties

hashCode → int
The hash code for this object. [...]
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

getExpiration() → int
Gets the expiration timeout. [...]
getKey() → String
Gets the key to locate the cached value. [...]
getValue() → dynamic
Gets the cached value. [...]
isExpired() → bool
Checks if this value already expired. [...]
setValue(dynamic value, int timeout) → void
Sets a new value and extends its expiration. [...]
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() → String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) → bool
The equality operator. [...]
inherited