Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

cache_layered

Compose any number of cache objects into a new, layered cache object


Description

Note that cache_layered is currently experimental.

Usage

cache_layered(..., logfile = NULL)

Arguments

...

Cache objects to compose into a new, layered cache object.

logfile

An optional filename or connection object to where logging information will be written. To log to the console, use stderr() or stdout().

Value

A layered caching object, with class cache_layered.

Examples

# Make a layered cache from a small memory cache and large disk cache
m <- cache_mem(max_size = 100 * 1024^2)
d <- cache_disk(max_size = 2 * 1024^3)
cl <- cache_layered(m, d)

cachem

Cache R Objects with Automatic Pruning

v1.0.4
MIT + file LICENSE
Authors
Winston Chang [aut, cre], RStudio [cph, fnd]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.