Removes the stored responses and resets the session counters. The directory itself is left in place.
Arguments
- cache
A
gr_cache().
Examples
cache <- gr_cache(file.path(tempdir(), "readgpt-clear-cache"))
cl <- gr_cache_client(gr_mock_client(function(m, p) "hi"), cache)
invisible(gr_call(cl, "something"))
gr_cache_clear(cache)
gr_cache_stats(cache)$entries
#> [1] 0