We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
下面是我初始化的代码(没有密码):
func init() { client = &codis.Pool{ ZkServers: []string{"10.100.55.51:2181"}, ZkTimeout: time.Second * 60, ZkDir: "/zk/codis/db_lzh_test/proxy", Dial: func(network, address string) (redis.Conn, error) { conn, err := redis.Dial(network, address) return conn, err }, } }
发现连接池连接数是0,查看源码发现在 codis.go 的 52 行,转化session的时候, data 中没有 Proto_type 和 Proxy_addr。data的值为:
Proto_type
Proxy_addr
{ "id":"proxy_10.100.55.51_10190", "addr":"10.100.55.51:10190", "last_event":"", "last_event_ts":0, "state":"online", "description":"", "debug_var_addr":"10.100.55.51:10191", "pid":19, "start_at":"2017-09-07 02:02:31.613248063 +0000 UTC" }
The text was updated successfully, but these errors were encountered:
应该是版本不一致, 这个客户端是基于 codis 3.0.3 开发的。
Sorry, something went wrong.
恩,应该是。我修改了一下proxyInfo,network写死为tcp 或者tcp4。set/get是可以的。
No branches or pull requests
下面是我初始化的代码(没有密码):
发现连接池连接数是0,查看源码发现在 codis.go 的 52 行,转化session的时候, data 中没有
Proto_type
和Proxy_addr
。data的值为:The text was updated successfully, but these errors were encountered: