memo (version 1.0.1)

cache_stats: 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.