CacheStats: Cache Statistics

CacheStatsR Documentation

Cache Statistics

Description

Cache statistics for monitoring

Public fields

hits

Cache hits

misses

Cache misses

sets

Cache sets

deletes

Cache deletes

evictions

Cache evictions

Methods

Public methods


Method record_hit()

Record a cache hit

Usage
CacheStats$record_hit()

Method record_miss()

Record a cache miss

Usage
CacheStats$record_miss()

Method record_set()

Record a cache set

Usage
CacheStats$record_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

Usage
CacheStats$hit_rate()
Returns

Numeric hit rate


Method to_list()

Convert to list

Usage
CacheStats$to_list()
Returns

List representation


Method reset()

Reset statistics

Usage
CacheStats$reset()

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.


VectrixDB documentation built on Feb. 20, 2026, 5:09 p.m.