Caching

cache_list

List all cached values

Returns a data frame of all cache entries with their names, expiration times, and status (expired or active).


Usage

cache_list()

Returns

A data frame with columns: name: Cache key name expire_at: Expiration timestamp (NA if no expiration) created_at: When the cache was created updated_at: When the cache was last updated last_read_at: When the cache was last read status: Either "active" or "expired" Returns an empty data frame if no cache entries exist.

Examples

# List all cache entries
cache_list()

# Filter to see only expired caches
cache_list() |> dplyr::filter(status == "expired")

Source: R/cache_read.R