debasishg / scala-redis

A scala library for connecting to a redis server, or a cluster of redis nodes using consistent hashing on the client side.
1.02k stars 219 forks source link

RedisClient in BATCH mode (for batchedPipeline) errors when sending commands to password-protected redis servers (initial AUTH command not sent) #293

Open noahlz opened 2 years ago

noahlz commented 2 years ago

See unit tests in PR #292

noahlz commented 2 years ago

just checking if this is an issue with the AUTH command being used with pipelined commands, and seems like not the case.

https://redis.io/topics/pipelining

$ (printf "PING\r\nPING\r\nPING\r\n"; sleep 1) | nc localhost 6379
-NOAUTH Authentication required.
-NOAUTH Authentication required.
-NOAUTH Authentication required.
$ (printf "AUTH \"mayonaise\"\r\nPING\r\nPING\r\nPING\r\n"; sleep 1) | nc localhost 6379
+OK
+PONG
+PONG
+PONG