Statistics
public struct Statistics
Statistics about the cache.
-
The total number of times an access attempt successfully retrieved an entry from the cache.
Usage Example:
let cache = KituraCache() ... let numHits = cache.statistics.hits
Declaration
Swift
public internal(set) var hits = 0
-
The total number of times an access attempt was unable to retrieve an entry from the cache.
Usage Example:
let cache = KituraCache() ... let numMisses = cache.statistics.misses
Declaration
Swift
public internal(set) var misses = 0
-
The total number of entries currently in the cache.
Usage Example:
let cache = KituraCache() ... let numKeys = cache.statistics.numberOfKeys
Declaration
Swift
public internal(set) var numberOfKeys = 0