pkgdown/extra.css Skip to contents

Removes cached API responses so that subsequent calls hit the API again. By default clears everything; use pattern to selectively clear entries for specific endpoints.

Usage

tce_cache_clear(pattern = NULL)

Arguments

pattern

Optional regex pattern to clear only matching keys. If NULL (default), clears the entire cache. For example, "Contratos" clears all cached contract queries.

Value

Invisibly returns the number of entries cleared.

See also

Examples

tce_cache_clear()              # clear everything
#>  No cached entries to clear.
tce_cache_clear("Contratos")   # clear contract queries only
#>  No cached entries to clear.