-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
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
Async Cache is caching exceptions #366
Comments
It caches the actual result, which is reasonable. Meaning that a cache which doesn't cache errors is a reasonable thing, but a different feature than this async cache. We could have both, or the current cache could have a flag. |
Creating a new class only for this functionality can be redundant, because |
A flag is probably the simplest approach. Still means that the default will still be the current behavior. |
Sure, adding a new flag with the name |
Added new variable |
Steps to reproduce
To reproduce the same issue you can refer the code sample given below.
Expected results
It should only cache successful result.
Actual results
It should not cache exception.
Code sample
Code sample
The text was updated successfully, but these errors were encountered: