Replies: 1 comment 4 replies
-
It will probably end up being a foreach loop anyway. PutMany works that way. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We have Put, PutMany, get, many, but there is no way to forget more than one item at a time.
Use case - We have a job that pulls in data from a table, these are matched against redis keys, and then merged with a second array to process. For each one of these rows (can be up to 10k+) we have to update the db row and forget the cache key. Updating 10k rows in a db is outside the loop with a bulk update, but we have to make 10k+ calls to forget redis keys in the loop... not ideal
I'm not sure about other cache system, but redis DEL command already can take mulitple keys
Beta Was this translation helpful? Give feedback.
All reactions