scala-redis
scala-redis copied to clipboard
Code sample for connecting to password enabled Redis instances
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.
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.