The cache data will be stored both in memory (for quick access) and on disk (for persistence).

cache_memory_file(cache_dir)

Arguments

cache_dir

Directory where to store the cache files.

Value

A cache object that inherits from R6Cache.

See also

Other cache functions: cache_file, cache_memory, default_cache

Examples

# NOT RUN {
cache_fmem <- cache_memory_file("path_to_cache_diretory")
# }