req_cache_getrad | R Documentation |
Function to set the cache for a getRad specific httr2 request
req_cache_getrad(
req,
use_cache = TRUE,
max_age = getOption("getRad.max_cache_age_seconds", default = 6 * 60 * 60),
max_n = getOption("getRad.max_cache_n", default = Inf),
max_size = getOption("getRad.max_cache_size_bytes", default = 1024 * 1024 * 1024),
...
)
req |
|
use_cache |
Logical indicating whether to use the cache. Default is
|
max_n , max_age , max_size |
Automatically prune the cache by specifying one or more of:
The cache pruning is performed at most once per minute. |
... |
Additional arguments passed to |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.