Test whether a memoised function has been cached for particular arguments.

has_cache(f)

## Arguments

f Function to test.

## Value

A function, with the same arguments as f, that can be called to test if f has cached results.

is.memoised, memoise, drop_cache
mem_sum <- memoise(sum)
#> [1] TRUE