Gives us an open Redis connection based on the configured host, port and password.
Gives us an open Redis connection based on the configured host, port and password.
This is how you should call it:
implicit val system = ActorSystem()
implicit val timeout = Timeout(15 seconds)
val configPrefix = "myService"
val redis = RedisClientUtil.newInstance(configPrefix)(system)
prefix under which redis config keys will be looked for
Akka's Actor System since it's required by the Redis client
an open Redis connection
author: cvandrei since: 2017-03-15