CacheStat class

Base class with all the stat fields backing up cache expiration and eviction strategies

Mixed in types
Implementers

Constructors

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

Properties

accessTime DateTime
Cache access time
read / write
creationTime DateTime
Cache creation time
read / write
expiryTime DateTime
Cache expiration time
read / write
hashCode int
The hash code for this object.
read-onlyinherited
hitCount int
Cache hitcount
read / write
key String
The cache key
final
props List<Object?>
The list of properties that will be used to determine whether two instances are equal.
read-onlyoverride
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
read-onlyinherited
updateTime DateTime
Cache update time
read / write

Methods

isExpired([DateTime? now]) bool
Checks if the cache entry 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