cache_stats() reports whether caching is on, how many requests were
served from the cache (hits) or sent to the model (misses) since the
cache was last cleared, and how many responses each tier holds.
Value
A list of class dsprrr_cache_stats with enabled, hits,
misses, hit_rate (hits as a share of all requests), and
memory_entries and disk_entries once those tiers are in use. If the
disk cache failed its privacy checks, also degraded = TRUE and
degraded_reason. Printing it gives a short report.
See also
Other configuration:
clear_cache(),
configure_cache(),
dsp_configure(),
dsprrr_sitrep(),
get_default_chat(),
is_reasoning_model(),
with_lm()