-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
CachePolicy does not cache results of type default(TResult) #523
Comments
@cmeeren We are now working towards a major release (v7.0) of Polly, so we have the opportunity to take the breaking change to fix this. Are you interested in pitching in a PR to fix this? It relates to the issue you raised in more detail here. Needed would be: (1) Adapt the
and
(2) Adapt the sync cache policy engine and async cache policy engine for the fact that we would have some (3) Add suitable/adapt existing tests Then we would want to bring Polly's two cache provider implementations into line with these simple changes: (a) We could also split more than one person over the work, if people were interested. |
Marking this 'up-for-grabs', for anyone interested |
I'm currently swamped with other work, so for the sake of me and mine I have to pass on this. Hoping someone else will be able to do this! 🤞 |
Thanks @cmeeren for the fast response. I also have to choose goals, so leaving this up-for-grabs ... |
I'll try to take a stab at this today. |
Edit: Oh wait, you can't do that with |
@cmeeren Awesome. And: thank you! I'm hoping to get v7 out early next week (the code is otherwise done; only finishing doco), so that would be perfect timing. Thanks for contributing! |
Fixes merged to the v7.0.0 branch |
CachePolicy does not cache results of type
default(TResult)
value-type case
x-ref:
reference-type case
ie ability to cache
null
x-ref:
The text was updated successfully, but these errors were encountered: