CacheSnapshot

data class CacheSnapshot(val entryCount: Int, val hitRate: Double)

Point-in-time snapshot of the cache policy state.

Constructors

Link copied to clipboard
constructor(entryCount: Int, hitRate: Double)

Properties

Link copied to clipboard

Current number of entries in the cache.

Link copied to clipboard

Ratio of cache hits to total lookups (hits + misses). Double.NaN when no calls have been made yet.