CacheStat class

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

Implementers

Constructors

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

Properties

accessTime DateTime
Cache access time
getter/setter pair
creationTime DateTime
Cache creation time
getter/setter pair
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 cache key
final
props List<Object?>
The list of properties that will be used to determine whether two instances are equal.
no setter
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
Cache update time
getter/setter pair

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