cache_stats: Report cache statistics.

View source: R/lru.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 29, 2024, 4:18 a.m.