qbraid.clear_cache

clear_cache()[source]

Clear all least-recently-used (LRU) caches that have been registered with the qbraid._caching.cached_method() decorator.

Use this function to completely reset the cache state for all decorated methods, which can be useful in testing environments or when you need to free up memory by discarding cached results.