scala-redis icon indicating copy to clipboard operation
scala-redis copied to clipboard

Code sample for connecting to password enabled Redis instances

Open manish333999 opened this issue 11 years ago • 1 comments

Am I missing the documentation on connecting to password enabled Redis instances or is the documentation missing it?

For example the RedisCloud Paas instance on Heroku needs something like "redis://rediscloud:[password-string here]@pub-redis-[port-number-here].us-east-1-3.4.ec2.garantiadata.com:[port-‌​number-here]" . How does RedisClient object use this format to connect to that instance? I am using [] brackets as palceholder for password string and port-number string since html gobbles up < and > characters.

manish333999 avatar Jul 02 '14 06:07 manish333999

Take a look at this line --> https://github.com/debasishg/scala-redis/blob/master/src/main/scala/com/redis/RedisClient.scala#L95

You have a secret val for the connection password.

gvolpe avatar Jan 24 '15 17:01 gvolpe