CacheStat class Null safety

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-only, inherited
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-only, override
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
stringify bool?
If set to true, the toString method will be overridden to output this instance's props. [...]
read-only, inherited
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 non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

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