Skip to contents

What is in the cache

Usage

knbs_cache_info()

Value

A tibble with one row per cached entry: cache_key, source_id, operation, resource_id, retrieved_at, expires_at, expired and size_bytes. Zero rows if nothing is cached.

Examples

# A throwaway cache, so the example leaves yours alone
op <- options(knbsdata.cache_dir = tempfile("knbs-cache-"))
knbs_cache_info()
#> # A tibble: 0 × 8
#> # ℹ 8 variables: cache_key <chr>, source_id <chr>, operation <chr>,
#> #   resource_id <chr>, retrieved_at <chr>, expires_at <chr>, expired <lgl>,
#> #   size_bytes <dbl>
options(op)