data_read_or_cache: Read data with caching (DEPRECATED)

View source: R/data_read.R

data_read_or_cacheR Documentation

Read data with caching (DEPRECATED)

Description

[Deprecated]

This function is deprecated. Use cache_remember() with data_read() instead:

df <- cache_remember("my_data", data_read("source.private.example"))

Usage

data_read_or_cache(path, expire_after = NULL, refresh = FALSE)

Arguments

path

Dot notation path to load data (e.g. "source.private.example")

expire_after

Optional expiration time in hours (default: from config)

refresh

Optional boolean or function that returns boolean to force refresh

Value

The loaded data, either from cache or file


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