CacheStats

interface CacheStats(source)

Functions

Link copied to clipboard
abstract fun averageLoadPenalty(): Double
Returns the average time spent loading new values.
Link copied to clipboard
abstract fun evictionCount(): Long
Returns the number of times an entry has been evicted.
Link copied to clipboard
abstract fun hitCount(): Long
Returns the number of times lookup methods have returned a cached value.
Link copied to clipboard
abstract fun hitRate(): Double
Returns the ratio of cache requests which were hits.
Link copied to clipboard
abstract fun loadCount(): Long
Returns the total number of times that lookup methods attempted to load new values.
Link copied to clipboard
abstract fun loadExceptionCount(): Long
Returns the number of times lookup methods threw an exception while loading a new value.
Link copied to clipboard
abstract fun loadExceptionRate(): Double
Returns the ratio of cache loading attempts which threw exceptions.
Link copied to clipboard
abstract fun loadSuccessCount(): Long
Returns the number of times lookup methods have successfully loaded a new value.
Link copied to clipboard
abstract fun minus(other: CacheStats): CacheStats
Returns a new ICacheStats representing the difference between this ICacheStats and other.
Link copied to clipboard
abstract fun missCount(): Long
Returns the number of times lookup methods have returned an uncached (newly loaded) value, or null.
Link copied to clipboard
abstract fun missRate(): Double
Returns the ratio of cache requests which were misses.
Link copied to clipboard
abstract fun plus(other: CacheStats): CacheStats
Returns a new ICacheStats representing the sum of this ICacheStats and other.
Link copied to clipboard
abstract fun requestCount(): Long
Returns the number of times lookup methods have returned either a cached or uncached value.
Link copied to clipboard
abstract fun totalLoadTime(): Long
Returns the total number of nanoseconds the cache has spent loading new values.