bofm/python-caching

Add an option to return cached value only in case of an error in the decorated function

Closed this issue · 1 comments

bofm commented

something like that

@Cache(return_cached_result_only_on_errors=(KeyError, ValueError))
def fn():
    pass
bofm commented

We need to find a good name for the parameter.