Closed wadechen2003 closed 5 years ago
Oops, I just updated the code
from
Dial: func() (redis.Conn, error) {
c, err := redis.Dial("tcp", configs.Get(confGroupName, confNodeAddresses).String(""), opts...)
if err != nil {
return nil, err
}
return c, nil
},
to
Dial: func() (redis.Conn, error) {
c, err := redis.Dial("tcp", addr , opts...)
if err != nil {
return nil, err
}
return c, nil
},
then it works really well...
still wonder why, thanks
Dear Sir My redis is Azure redis service. Redis version was 3.2.7, clustered 3 maters and 3 slaves
I tried to get the connection and do command
redisConnection.Do("GET", key)
sometimes works, sometimes returnredisc: too many attempts
hear are some related codes, which i used to create the connection. where I setup error ? thank you very much