CacheStats class abstract

The Stats definition for a cache

Constructors

CacheStats()

Properties

averageGetTime → double
The mean time to execute gets.
no setterinherited
averagePutTime → double
The mean time to execute puts.
no setterinherited
averageRemoveTime → double
The mean time to execute removes.
no setterinherited
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.
no setter
expiries → int
The total number of cache expiries.
no setter
getPercentage → double
This is a measure of cache efficiency.
no setter
gets → int
The number of get requests that were satisfied by the stash.
no setterinherited
hashCode → int
The hash code for this object.
no setterinherited
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.
no setter
missPercentage → double
Returns the percentage of cache accesses that did not find a requested entry in the cache.
no setter
puts → int
The total number of puts to the stash
no setterinherited
removals → int
The total number of removals from the stash.
no setterinherited
requests → int
The total number of requests to the cache. This will be equal to the sum of the gets and misses.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

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 nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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