cache_use_sodium: Tell cache to use sodium backend by default

Description Usage Arguments Details Examples

View source: R/cache_use_sodium.R

Description

Caches objects by default with sodium encryption using the sodium package

Usage

1

Arguments

key

string; sets the en/decryption key cache.sodium.key. The default (NULL) does not set a key.

Details

Encrypts cached datasets using sodium256 encryption provided by the sodium package. Cache

If key is provided, this is used as the encryption/decrytion key.

Examples

1
2
3
4
5
6
7
dontrun{
 cache_use_sodium()
 cache(mtcars)
 if( exists('mtcars') ) rm(mtcars)
 uncache(mtcars)
 fs::dir_ls( cache_find() )
}

decisionpatterns/cache.sodium documentation built on May 27, 2020, 3:21 a.m.