stat property

CacheStat stat

Returns a CacheStat from this CacheEntry

Implementation

CacheStat get stat => CacheStat(key, expiryTime, creationTime)
  ..accessTime = accessTime
  ..updateTime = updateTime
  ..hitCount = hitCount;
void stat=(CacheStat stat)

Sets the CacheStat part of this CacheEntry

Implementation

set stat(CacheStat stat) {
  expiryTime = stat.expiryTime;
  accessTime = stat.accessTime;
  updateTime = stat.updateTime;
  hitCount = stat.hitCount;
}