The cache data will be stored both in memory (for quick access) and on disk (for persistence).
cache_memory_file(cache_dir)
| cache_dir | Directory where to store the cache files. |
|---|
A cache object that inherits from R6Cache.
Other cache functions: cache_file,
cache_memory, default_cache
# NOT RUN { cache_fmem <- cache_memory_file("path_to_cache_diretory") # }