CacheStats class Null safety

The Stats definition for a cache

Constructors

CacheStats()

Properties

averageGetTime double
The mean time to execute gets.
read-only, inherited
averagePutTime double
The mean time to execute puts.
read-only, inherited
averageRemoveTime double
The mean time to execute removes.
read-only, inherited
evictions int
The total number of evictions from the cache. An eviction is a removal initiated by the cache itself to free up space. An eviction is not treated as a removal and does not appear in the removal counts.
read-only
expiries int
The total number of cache expiries.
read-only
getPercentage double
This is a measure of cache efficiency.
read-only
gets int
The number of get requests that were satisfied by the stash.
read-only, inherited
hashCode int
The hash code for this object.
read-only, inherited
misses int
A miss is a get request that is not satisfied. In a simple cache a miss occurs when the cache does not satisfy the request. Note that containsKey is not a get request for statistics purposes.
read-only
missPercentage double
Returns the percentage of cache accesses that did not find a requested entry in the cache.
read-only
puts int
The total number of puts to the stash
read-only, inherited
removals int
The total number of removals from the stash.
read-only, inherited
requests int
The total number of requests to the cache. This will be equal to the sum of the gets and misses.
read-only
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

addGetTime(int duration) → void
Increments the get time accumulator
inherited
addPutTime(int duration) → void
Increments the put time accumulator
inherited
addRemoveTime(int duration) → void
Increments the remove time accumulator
inherited
clear() → void
Clears the statistics counters to 0 for the associated stash.
inherited
increaseEvictions({int number = 1}) → void
Increases the counter by the number specified.
increaseExpiries({int number = 1}) → void
Increases the counter by the number specified.
increaseGets({int number}) → void
Increases the counter by the number specified.
inherited
increaseMisses({int number}) → void
Increases the counter by the number specified.
increasePuts({int number = 1}) → void
Increases the counter by the number specified.
inherited
increaseRemovals({int number = 1}) → void
Increases the counter by the number specified.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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