qbraid.cache_disabled

cache_disabled(instance)[source]

Context manager to temporarily disable caching for a specific instance.

Parameters:

instance – The class instance for which the cache should be disabled.

Return type:

Generator[None, None, None]

Example usage:

with cache_disabled(instance):
    instance.method_call()