Replies: 1 comment
-
Yes, go-redis will choose a shard based on the first key in the argument list. |
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
-
I am trying to understand how go-redis will run a script with cluster enabled and multiple shards?
Which node will choose to run the script on ?
Let's assume a script that reads a key A and writes another key B based on the value of A. To keep things simple, both keys hash to the same slot.
Is go-redis smart enough to parse the keys and run it on corresponding node ?
Beta Was this translation helpful? Give feedback.
All reactions