configuration of twitter finagle redis client with tls enabled

369 views Asked by At

How do I configure the finagle Redis client with tls-enabled?

    @Provides
def providesRedisClient(@Flag("redis-addr") host: String): redis.Client = {
    redis.Client(host)
}

as the function we used only took redis-endpiont.

1

There are 1 answers

0
loren On

found following solution (just replace redis.Client(host) with the code below):

redis.Client(Redis.client.withTransport.tls(host).newClient(host))