cache_gcs: Google Cloud Storage Cache Google Cloud Storage backed cache,...

Description Usage Arguments Examples

View source: R/cache_gcs.R

Description

Google Cloud Storage Cache Google Cloud Storage backed cache, for remote caching.

Usage

1
2
cache_gcs(cache_name = googleCloudStorageR::gcs_get_global_bucket(),
  algo = "sha512")

Arguments

cache_name

Bucket name for storing cache files.

algo

The hashing algorithm used for the cache, see digest for available algorithms.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
library(googleCloudStorageR)
# Set GCS credentials.
Sys.setenv("GCS_AUTH_FILE"="<google-service-json>",
           "GCS_DEFAULT_BUCKET"="unique-bucket-name")

gcs <- cache_gcs("unique-bucket-name")
mem_runif <- memoise(runif, cache = gcs)

## End(Not run)

hadley/memoise documentation built on March 26, 2018, 10:56 a.m.