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

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

Open
lixin43715965 opened this issue Sep 11, 2021 · 0 comments

Comments

@lixin43715965
Copy link

lixin43715965 commented Sep 11, 2021

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?

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

1 participant