This sets the connection and command timeout period in seconds
for the connection to the Redis server, sentinel connections, sentinel
reads, sentinel writes, server read, and server write. The default value
is 1
second.
Here is an example of using
Timeout
:
Timeout 2