When using redis-cli to connect to the remote redis server, redis-cli will have to wait more than 1 minutes to return an error if the network fails. When redis-cli is used in the script, the above problem can cause the script to execute slowly. So is it possible to add a timeout option to redis-cli to solve the problem?
Comment From: itamarhaber
Sounds like a good feature have that shouldn't be too hard to add.
Comment From: Carmageddon
Is this still open? it seems redis-cli 5.0.5 does not recognize -t. I am not getting any response from connection attempt even with --verbose on aws ec2 to aws redis instance, so was hoping to limit timeout maybe..
Comment From: pcgeek86
+1 would like to see this added. @yoav-steinberg can we merge the #10609 pull request?