R/lowlevel.R

Defines functions lowLevelLoadCache lowLevelCache

Documented in lowLevelCache lowLevelLoadCache

#' @title
#' Low Level Cache
#' @rdname lowLevelCache
#' @keywords internal
#' @export

lowLevelCache <-
  function(data, query) {
    R.cache::saveCache(
      object = data, key = list(query),
      dirs = "chariot"
    )
  }

#' @title
#' Low Level Load Cache
#' @rdname lowLevelLoadCache
#' @keywords internal
#' @export

lowLevelLoadCache <-
  function(query) {
    R.cache::loadCache(key = list(query), dirs = "chariot")
  }
patelm9/chariot documentation built on Feb. 19, 2022, 11:29 a.m.