cache_stats: Report cache statistics.

View source: R/cache.R

cache_statsR Documentation

Report cache statistics.

Description

Report cache statistics.

Usage

cache_stats(fn)

Arguments

fn

A memoized function that was created by memo.

Value

A list with labels "size", "used", "hits", "misses", "expired" counting the number of slots in the cache, the number of slots currently used, the number of times a previous result was recalled, a new result was recorded, and a result was dropped.


memo documentation built on May 5, 2022, 9:05 a.m.