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