-
Notifications
You must be signed in to change notification settings - Fork 102
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
fetch feature request #94
Comments
Just tried – it works as I need, thanks! But I think there are still some issues with this:
|
I disagree.
Cachex.set(:redis_memory_layer, "my_key", "...") Can you please clarify on the difference there? |
@zackehh I have couple of questions regarding
|
Hi @ananthakumaran!
Do these answers clarify your questions? I'm interested in your thoughts on #2; do you think my conclusions are reasonable? The only solution I have at the moment would be to queue the fallback calls - but it would still be last one in wins; I don't believe there's an efficient way to "cancel" the remaining once the key has been set by the first fallback. |
{:ignore, x} is exactly what I want
I have the exact use case. Also, it might be reasonable to assume the fallback call to make long running remote calls.
Prefetching might not be possible in my case. Cachex.transaction! might solve my use case (BTW the example in readme should use the reference state instead of worker inside the block). Should have read the README properly. Thanks. |
Aloha @ananthakumaran Glad to hear it, I have filed #95 to better document the I have also filed #96 to take another look at how fallbacks work to see if it can be made a little less stressful for backend systems. I threw in #97 as a bonus which should also reduce pressure in fallbacks. Would you mind taking a quick look over both of the latter tickets and dropping your thoughts in them? |
I'm going to close this issue as I feel everything is covered by a) existing features or b) those in the comment above. If anyone has any concerns, please open a new issue specifically for your concern (as this thread got a little off topic). |
It would be very helpful to have function like this:
And use it like this:
The text was updated successfully, but these errors were encountered: