CacheStat constructor
CacheStat(})
Builds a CacheStat
- key: The cache key
- expiryTime: The cache expiry time
- creationTime: The cache creation time
accessTime
: The cache access timeupdateTime
: The cache update timehitCount
: The cache hit count
Implementation
CacheStat(this.key, this.expiryTime, this.creationTime,
{DateTime? accessTime, DateTime? updateTime, int? hitCount})
: assert(key.isNotEmpty),
assert(hitCount == null || hitCount >= 0),
accessTime = accessTime ?? creationTime,
updateTime = updateTime ?? creationTime,
hitCount = hitCount ?? 0;