R/cache.R
clear_cache.Rd
Clear cached LLM responses. Can clear memory cache, disk cache, or both.
clear_cache(which = c("all", "memory", "disk"))
Character. Which cache tier to clear: "all" (default), "memory", or "disk".
"all"
"memory"
"disk"
Invisibly returns TRUE on success.
TRUE
if (FALSE) { # \dontrun{ # Clear all caches clear_cache() # Clear only memory cache clear_cache("memory") # Clear only disk cache clear_cache("disk") } # }