interpret_cache_type: Generate cache parameters from preexisting shorthand types.

View source: R/interpret_type.R

interpret_cache_typeR Documentation

Generate cache parameters from preexisting shorthand types.

Description

Generate cache parameters from preexisting shorthand types.

Usage

interpret_cache_type(type, ext_prefix = "cache_")

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".

Value

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


filecacher documentation built on May 29, 2024, 7:35 a.m.