cache: Cache a value

View source: R/cache_write.R

cacheR Documentation

Cache a value

Description

Cache a value

Usage

cache(name, value, file = NULL, expire_after = NULL)

Arguments

name

The cache name

value

The value to cache

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


framework documentation built on Feb. 18, 2026, 1:07 a.m.