Learn R Programming

filecacher (version 0.2.9)

interpret_cache_type: Generate cache parameters from preexisting shorthand types.

Description

Generate cache parameters from preexisting shorthand types.

Usage

interpret_cache_type(type, ext_prefix = "cache_")

Value

List of read_fn, write_fn, and extension for use with cachem::cache_disk().

Arguments

type

A string describing the type of cache. Must be NULL or one of 'rds', 'parquet', or 'csv'. If NULL (default), uses 'rds'.

ext_prefix

The prefix to use with the file extension, e.g. "cache_csv", instead of "csv".