CacheInfo class

Base class with all the info fields for the Cache

Inheritance

Constructors

CacheInfo(String key, DateTime creationTime, DateTime expiryTime, {int? hitCount, DateTime? accessTime, DateTime? updateTime})
Builds a CacheInfo

Properties

accessTime ↔ DateTime
Info access time
getter/setter pairinherited
creationTime → DateTime
Info creation time
finalinherited
expiryTime ↔ DateTime
Cache expiration time
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
hitCount ↔ int
Cache hitcount
getter/setter pair
key → String
The key
finalinherited
props → List<Object?>
The list of properties that will be used to determine whether two instances are equal.
no setteroverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
stringify → bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited
updateTime ↔ DateTime
Info update time
getter/setter pairinherited

Methods

isExpired([DateTime? now]) → bool
Checks if the cache info is expired
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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