redisearch-go icon indicating copy to clipboard operation
redisearch-go copied to clipboard

Authenticating with multihostpool

Open linopu opened this issue 3 years ago • 0 comments

Currently while working with MultiHostPool connection is being created when calling MultiHostPool.Get method. While creating NewSingleHostPool you can dial by yourself and create a connection with given password doing something like that p := &redigo.Pool{ Dial: func() (redigo.Conn, error) { return redigo.DialURL(fmt.Sprintf("redis://%s@%s:%d", password, host, port)) }, } but with MultiHostPool it seems you dont have the same option

linopu avatar Apr 20 '21 13:04 linopu