We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Your README seems to imply that the invalidate() call doesn't return the new value:
invalidate()
>>> expensive_function(100, 200) 121 >>> exensive_function.invalidate(1, 200) >>> expensive_function(1, 100) 89
… however a call with _refresh=True does:
_refresh=True
>>> expensive_function(100, 200) 121 >>> expensive_function(100, 200, _refresh=True) 177 >>> expensive_function(100, 200) 177
Is this correct?
The text was updated successfully, but these errors were encountered:
Correct understanding. The invalidate function doesn't actually run the function you're decoratoring.
invalidate
Clearly this wasn't clear from the documentation (hence you filing this issue). Can you suggest a docs update to make it more clear?
Sorry, something went wrong.
Nah, it's fine: I think it's clear enough as it is in the current README.
No branches or pull requests
Your README seems to imply that the
invalidate()
call doesn't return the new value:… however a call with
_refresh=True
does:Is this correct?
The text was updated successfully, but these errors were encountered: