copyForUpdate method
Copies a CacheEntry
value: The valuekey: The cache keyexpiryTime: The cache expiry timecreationTime: The cache creation timeaccessTime: The cache access timeupdateTime: The cache update timehitCount: The cache hit count
Implementation
CacheEntry copyForUpdate(dynamic value,
{String? key,
DateTime? expiryTime,
DateTime? creationTime,
DateTime? accessTime,
DateTime? updateTime,
int? hitCount}) =>
CacheEntry._(
key ?? this.key,
value,
expiryTime ?? this.expiryTime,
creationTime ?? this.creationTime,
true,
accessTime: accessTime ?? this.accessTime,
updateTime: updateTime ?? this.updateTime,
hitCount: hitCount ?? this.hitCount,
);