Replies: 1 comment
-
|
Hi @mpodonyi If I have to assume, you used Adaptive Caching with some added logic before returning from the factory, and maybe a bit of Just curious how you did solve it. Let me know, thanks! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have the following setup:
Assuming there is already something in the Cache for this key and now the 24 hours are expired.
I want that the Cache Value gets replaced with the Factory Function Result only when this Factory is returning NOT NULL.
In case the Factory returns NULL I want that the current value stays in the cache and GetMyStuff returns the cached Value.
On next call to GetMyStuff there should be again a try to Call the Factory Function.
The Bottom Line is that the Cache Only gets Replaced when the Factory Function is returning successfully.
Beta Was this translation helpful? Give feedback.
All reactions