CacheEntry class

A cache entry holding a value and its expiration time.

Constructors

CacheEntry(dynamic value, DateTime expiry)
Creates a CacheEntry with the given value and expiry.
CacheEntry.fromJson(Map<String, dynamic> json)
Creates a CacheEntry from a JSON map.
factory

Properties

expiry DateTime
The date and time when this entry expires.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value → dynamic
The cached value.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Serializes this entry to a JSON-compatible map.
toString() String
A string representation of this object.
inherited

Operators

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