CacheStats class
Statistics for cache profiling and diagnostics.
Constructors
Properties
- effectiveHitRate → double
-
Hit rate including pending hits.
no setter
- evictions → int
-
Total evictions from cache.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- hitRate → double
-
Hit rate as a percentage (0.0 to 1.0).
no setter
- hits → int
-
Total cache hits (found in completed cache).
no setter
- misses → int
-
Total cache misses (not found, had to load).
no setter
- peakSize → int
-
Peak cache size observed.
no setter
- pendingHits → int
-
Hits on pending (in-flight) entries.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- totalAccesses → int
-
Total access count (hits + misses).
no setter
Methods
-
dump(
) → String - Returns a diagnostic summary of cache statistics.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
recordEviction(
) → void - Records an eviction.
-
recordHit(
) → void - Records a cache hit.
-
recordMiss(
) → void - Records a cache miss.
-
recordPendingHit(
) → void - Records a pending hit.
-
reset(
) → void - Resets all statistics.
-
toString(
) → String -
A string representation of this object.
override
-
updatePeakSize(
int currentSize) → void - Updates peak size if current size is larger.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited