Open lixin43715965 opened 2 years ago
package main import ( "github.com/chasex/redis-go-cluster" "time" ) var ClusterPool redis.Cluster var Err error func main() { host := "127.0.0.1" ClusterPool, Err = redis.NewCluster( &redis.Options{ StartNodes: []string{ host+":6379", host+":6380", host+":6381", host+":6382", host+":6383", host+":6384"}, ConnTimeout: 50 * time.Millisecond, ReadTimeout: 50 * time.Millisecond, WriteTimeout: 50 * time.Millisecond, KeepAlive: 16, AliveTime: 60 * time.Second, })
run main.go
console: no invalid node in [127.0.0.1:6379 127.0.0.1:6380 127.0.0.1:6381 127.0.0.1:6382 127.0.0.1:6383 127.0.0.1:6384]
where?
run main.go
console: no invalid node in [127.0.0.1:6379 127.0.0.1:6380 127.0.0.1:6381 127.0.0.1:6382 127.0.0.1:6383 127.0.0.1:6384]
where?