CacheInfo constructor

CacheInfo(
  1. String key,
  2. DateTime creationTime,
  3. DateTime expiryTime, {
  4. int? hitCount,
  5. DateTime? accessTime,
  6. DateTime? updateTime,
})

Builds a CacheInfo

  • key: The cache key
  • creationTime: The cache creation time
  • expiryTime: The cache expiry time
  • hitCount: The cache hit count
  • accessTime: The cache access time
  • updateTime: 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;