CacheStats class

Cache statistics

Constructors

CacheStats({required int size, required int maxSize, Duration? oldestEntryAge, Duration? newestEntryAge, double hitRate = 0.0, int hits = 0, int misses = 0, int evictions = 0, double averageAccessCount = 0.0})

Properties

averageAccessCount double
final
evictions int
final
hashCode int
The hash code for this object.
no setterinherited
hitRate double
final
hits int
final
maxSize int
final
misses int
final
newestEntryAge Duration?
final
oldestEntryAge Duration?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size int
final
utilizationPercent double
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited