redisearch-go
redisearch-go copied to clipboard
Authenticating with multihostpool
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