framework docs
Caching

cache_get()

Get a cached value

Get a cached value

Usage

cache_get(name, file = NULL, expire_after = NULL)

Arguments

name
The cache name
file
Optional file path to store the cache (default: `cache/{name}.rds`)
expire_after
Optional expiration time in hours (default: from config)

Value

The cached value, or NULL if not found, expired, or hash mismatch