Skip to contents

If you don't want to store the response of a GET request in the cache, wrap it in uncached(). It will neither read from nor write to cache.

Usage

uncached(...)

Arguments

...

Things to evaluate with caching off

Value

Whatever ... returns.

Details

uncached will not invalidate cache records, if present. It only ignores them.

Examples

uncached(GET("http://httpbin.org/get"))
#> Response [http://httpbin.org/get]
#>   Date: 2023-04-07 13:49
#>   Status: 200
#>   Content-Type: application/json
#>   Size: 368 B
#> {
#>   "args": {}, 
#>   "headers": {
#>     "Accept": "application/json, text/xml, application/xml, */*", 
#>     "Accept-Encoding": "deflate, gzip", 
#>     "Host": "httpbin.org", 
#>     "User-Agent": "libcurl/7.86.0 r-curl/5.0.0 httr/1.4.5", 
#>     "X-Amzn-Trace-Id": "Root=1-64301f6b-6aba6c60092e67ec028610cd"
#>   }, 
#>   "origin": "76.230.157.126", 
#> ...