R/clear_cache.R

Defines functions clear_cache

Documented in clear_cache

#' Clear quincunx cache of memoised functions
#'
#' quincunx uses memoised functions for the REST API calls. Use this function to
#' reset the cache.
#'
#' @return Returns a logical value, indicating whether the resetting of the
#'   cache was successful (\code{TRUE}) or not  \code{FALSE}.
#'
#' @examples
#' clear_cache()
#'
#' @export
clear_cache <- function() {
  memoise::forget(memoised_GET)
}

Try the quincunx package in your browser

Any scripts or data that you put into this service are public.

quincunx documentation built on July 9, 2023, 7:32 p.m.