Skip to content
New issue

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

redis-go 连不上集群? #3

Open
opvexe opened this issue Nov 24, 2020 · 1 comment
Open

redis-go 连不上集群? #3

opvexe opened this issue Nov 24, 2020 · 1 comment

Comments

@opvexe
Copy link

opvexe commented Nov 24, 2020

rdb := redis.NewClusterClient(&redis.ClusterOptions{
	Addrs: []string{"192.168.200.11:7001", "localhost:7002", "localhost:7003"},
	PoolSize:     1000,
	PoolTimeout:  2 * time.Minute,
	IdleTimeout:  10 * time.Minute,
	ReadTimeout:  2 * time.Minute,
	WriteTimeout: 1 * time.Minute,
})
_, err := rdb.Ping(context.Background()).Result()
if err != nil {
	panic(err)
}
@JasonkayZK
Copy link
Owner

大兄弟,你issue提错地方了吧…,这是Java项目;
另外,你只贴了个go-redis连接的代码,也不给个报错信息,我咋帮你排查错误啊= =;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants