R/object_cache.R

##' @importFrom storr storr
object_cache <- function(prefix, con) {
  dr <- storr::driver_redis_api(prefix, con)
  storr::storr(dr)
}

## TODO: weirdly this is the same thing as object_cache, but a
## different prefix.
file_cache <- function(prefix, con) {
  dr <- storr::driver_redis_api(prefix, con)
  storr::storr(dr)
}
traitecoevo/rrqueue documentation built on May 31, 2019, 7:44 p.m.