CacheStats constructor

CacheStats({
  1. required int size,
  2. required int maxSize,
  3. Duration? oldestEntryAge,
  4. Duration? newestEntryAge,
  5. double hitRate = 0.0,
  6. int hits = 0,
  7. int misses = 0,
  8. int evictions = 0,
  9. double averageAccessCount = 0.0,
})

Implementation

CacheStats({
  required this.size,
  required this.maxSize,
  this.oldestEntryAge,
  this.newestEntryAge,
  this.hitRate = 0.0,
  this.hits = 0,
  this.misses = 0,
  this.evictions = 0,
  this.averageAccessCount = 0.0,
});