Replies: 1 comment
-
I have found that you can use transaction in redis with this client https://github.com/redis/go-redis/blob/master/tx.go |
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
Uh oh!
There was an error while loading. Please reload this page.
-
Question about the correct usage of "wait". According to the redis docs "wait" command "returns when all the previous write commands sent in the context of the current connection are guaranteed to be received by the number of replicas". Since the library uses connection pooling how one can make sure that "wait" returns the number of replicas from a specific command and not something else that was running concurrently?
In my understanding, both commands in the following code just pick available connections from the pool without any
'stickiness' which might yield incorrect resulsts.
Beta Was this translation helpful? Give feedback.
All reactions