You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
folow line Dial: func() (redis.Conn, error) {
return redis.Dial("tcp", ":6379")
},
if i can connect to redis remote, i need to add more param to "return redis.Dial("tcp", ":6379")"
but you view source redis.Dial(), in param options ...DialOption:
if connect redis pool, ex:
"""var redisPool = &redis.Pool{
MaxActive: 5,
MaxIdle: 5,
Wait: true,
Dial: func() (redis.Conn, error) {
return redis.Dial("tcp", ":6379")
},
}"""
folow line Dial: func() (redis.Conn, error) {
return redis.Dial("tcp", ":6379")
},
if i can connect to redis remote, i need to add more param to "return redis.Dial("tcp", ":6379")"
but you view source redis.Dial(), in param options ...DialOption:
and DialOption source:
// DialOption specifies an option for dialing a Redis server.
"""type DialOption struct {
f func(*dialOptions)
}"""
clearly, dialOptions is not public, how to pass dialOptions to this function f func(*dialOptions),
please helpme clearly this problem
The text was updated successfully, but these errors were encountered: