|
|
@@ -48,6 +48,7 @@ func NewRedis(addr string) { |
|
|
|
Wait: true, |
|
|
|
Dial: func() (redigo.Conn, error) { |
|
|
|
c, err := redigo.Dial("tcp", addr, |
|
|
|
redigo.DialPassword(redisPassword), |
|
|
|
redigo.DialConnectTimeout(redisDialTTL), |
|
|
|
redigo.DialReadTimeout(redisReadTTL), |
|
|
|
redigo.DialWriteTimeout(redisWriteTTL), |
|
|
|