CacheEntry.updated constructor
CacheEntry.updated(})
Creates an updated CacheEntry
info
: The cache info of the original entryvalue
: The cache valueupdateTime
: The cache update timehitCount
: The cache hit countexpiryTime
: The cache expiry time
Implementation
CacheEntry.updated(
CacheInfo info, dynamic value, DateTime updateTime, int hitCount,
{DateTime? expiryTime})
: this._(
CacheInfo(
info.key, info.creationTime, expiryTime ?? info.expiryTime,
hitCount: hitCount,
accessTime: info.accessTime,
updateTime: updateTime),
value,
EntryState.updated);