uncached: Context manager to temporarily turn cache off if it is on

View source: R/cache.R

uncachedR Documentation

Context manager to temporarily turn cache off if it is on

Description

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

Details

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

Value

Whatever ... returns.

Examples

uncached(GET("http://httpbin.org/get"))

nealrichardson/httpcache documentation built on April 21, 2023, 3:41 p.m.