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