You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a situation where I am caching records from remote API get requests. I would like to run a background task that fetches a list in bulk and primes the cache in bulk.
It would be useful if there was a helper for this like ".invalidate"
Right now to do this I need to hit the list api and then parse the results and rerun the memoized function. So I have to fetch the records twice in this case
The text was updated successfully, but these errors were encountered:
I have a situation where I am caching records from remote API get requests. I would like to run a background task that fetches a list in bulk and primes the cache in bulk.
It would be useful if there was a helper for this like ".invalidate"
Perhaps
cache_memoized_function.set(args, result)
? And potentiallycache_memoized_function.set_in_bulk([(args1, result1), (args2, result2), ..., (argsN, resultN)])
Right now to do this I need to hit the list api and then parse the results and rerun the memoized function. So I have to fetch the records twice in this case
The text was updated successfully, but these errors were encountered: