Does it work auto pipeline when I use adapter like go-redis? #206
-
I know there are adapter like go-redis (https://github.com/rueian/rueidis/tree/main/rueidiscompat) For example, when I use go-redis library, I use this code.
Howerver, I don't know how to write code like I wrote above when using rueidis adapter.
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Hi @KwonsooPark, rueidis is able to pipeline concurrent requests automatically. In your example, however, those Unfortunately, |
Beta Was this translation helpful? Give feedback.
Hi @KwonsooPark,
rueidis is able to pipeline concurrent requests automatically.
In your example, however, those
client.Expire(ctx, key, exp).Err()
aren't fired concurrently, and therefore they won't be pipelined.Unfortunately,
client.Pipeline()
equivalent is not yet implemented in rueidiscompat. Would you consider usingDoMulti()
instead?