its confusing knowing how to deal with expiry time. if you include expire in 1st request, but not in the 2nd exact same request, does the expiry setting from the 1st apply to the 2nd one?
we need a way to simply wrap a package/script fxn in a webmiddens fxn instead of having to make the user modify the internals of their code , eg.,
# some fxn that does an http request
some_fxn <- function(x) {
some_http_request(x)
}
# simply wrap it in a webmiddens fxn, with settings with a separte fxn perhaps
library(webmiddens)
web_settings(dir = "foo/bar", expire = 3)
cache(some_fxn(...))
# and can override session level settings
cache(some_fxn(...), expire = 5)
its confusing knowing how to deal with expiry time. if you include
expire
in 1st request, but not in the 2nd exact same request, does the expiry setting from the 1st apply to the 2nd one?we need a way to simply wrap a package/script fxn in a webmiddens fxn instead of having to make the user modify the internals of their code , eg.,