cache_backend: Get/Set the default cache backend

Description Usage Arguments Details See Also Examples

View source: R/cache_backend.R

Description

Get/Set the default cache backend

Usage

1
2
3

Arguments

backend

string; name for the backend. Note this is not the file extension but the name of a registered backend.

Details

cache_backend() gets or sets the default method(s) for reading and writing from/to the cache. Without an argument, it returns the current default backend. With a string backend argument, it sets the default methods to those associated with that backend

cache_backend() throws an error if no backend is registered for the backend argument. Register that backend with cache_register() first.

cache_use_backend() requires a backend string to be provided but otherwise works as cache_backend()

See Also

Examples

1
2
3
4

decisionpatterns/cache documentation built on June 15, 2020, 9:35 p.m.