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.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setValue(dynamic value, int timeout) → void
Sets a new value and extends its expiration.
toString() String
A string representation of this object.
inherited

Operators

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