wuxibin89 / redis-go-cluster

redis cluster client implementation in Go
Apache License 2.0
488 stars 145 forks source link

when i init cluster nodes client ,i can't find input cluster password place #42

Open lixin43715965 opened 2 years ago

lixin43715965 commented 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?