Skip to contents

Remove expired cache entries

Usage

knbs_cache_prune(quiet = knbs_option("quiet"))

Arguments

quiet

Suppress the summary message.

Value

The number of entries removed, invisibly.

See also

knbs_cache_clear() to remove everything.

Examples

# A throwaway cache, so the example leaves yours alone
op <- options(knbsdata.cache_dir = tempfile("knbs-cache-"))
knbs_cache_prune()
#> ✔ Removed 0 expired cache entries.
options(op)