mediocregopher / radix.v2

Redis client for Go
http://godoc.org/github.com/mediocregopher/radix.v2
MIT License
433 stars 92 forks source link

How to connect to redis cloud that's password protected? #90

Closed kingcw closed 6 years ago

kingcw commented 6 years ago

Hi,

how to use radix.v2 pool to connect to redis cloud that's password protected?

i don't see a password parameter for New function: pool.New("tcp", address, 10)

for address, i tried to add password :password@host:port, and it's not working neither

Thank you

mediocregopher commented 6 years ago

Hey @kingcw, if you check out the docs for the pool package, under the title "Custom connections" you can find an example for a pool which uses AUTH connections.