interpret_cache_type {filecacher}R 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().


[Package filecacher version 0.2.9 Index]