Cache statistics for monitoring
Public fields
hits
Cache hits
misses
Cache misses
sets
Cache sets
deletes
Cache deletes
evictions
Cache evictions
Methods
Method record_hit()
Record a cache hit
Method record_miss()
Record a cache miss
Method record_set()
Record a cache set
Method record_delete()
Record a cache delete
Usage
CacheStats$record_delete()
Method record_eviction()
Record a cache eviction
Usage
CacheStats$record_eviction()
Method hit_rate()
Get hit rate
Method to_list()
Convert to list
Returns
List representation
Method reset()
Reset statistics
Method clone()
The objects of this class are cloneable with this method.
Usage
CacheStats$clone(deep = FALSE)
Arguments
deep
Whether to make a deep clone.