Use cache when refetching if a condition is met? #3522
Unanswered
1Computer1
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Take a look at this part of RQ docs |
Beta Was this translation helpful? Give feedback.
2 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.
-
Hello, suppose I have two fetchers,
fetchLastModified
andfetchExpensive
.I would like to be able to do something like this:
The idea is that if nothing is in cache, it would fetch, but if there is something in cache and the condition is met, then it would not refetch (incl. on refocus and such). Perhaps there is a manual way to implement this logic?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions