CacheStats class

Cache statistics

Constructors

CacheStats.new({required int entryCount, required int totalSizeBytes, required double hitRate, DateTime? oldestEntry, DateTime? newestEntry})
const

Properties

entryCount int
Number of cached entries
final
hashCode int
The hash code for this object.
no setterinherited
hitRate double
Cache hit rate (0.0 to 1.0)
final
hitRatePercentage double
Get hit rate as percentage
no setter
newestEntry DateTime?
Newest cache entry timestamp
final
oldestEntry DateTime?
Oldest cache entry timestamp
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
totalSizeBytes int
Total size in bytes
final
totalSizeMB double
Get total size in MB
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