Closed xchen0012 closed 7 years ago
How do you connect to Azure Redis? Via SSL or plain-text? Do you use Redis Standalone or Redis Cluster?
Yes. I used SSL and Redis Standalone client.
code: class AzureRedisCache(connectionInfo: ConnectionInfo) extends RedisCache{
private val redisClient= {
val password = connectionInfo.custom(ConnectionInfoConstants.AccessKey).toString
val hostName = connectionInfo.name
val port = connectionInfo.custom(ConnectionInfoConstants.Port).toString.toInt
val isSsl = connectionInfo.custom(ConnectionInfoConstants.SSLPort).toString.toBoolean
val redisUri = RedisURI.Builder.redis(hostName, port).withSsl(isSsl).withPassword(password).build()
RedisClient.create(redisUri)
} }
You might want to enable DEBUG
logging for com.lambdaworks.redis
to get a debug log. Lettuce 4.3 is known to work with Azure Redis and Redis Cluster so the debug log should provide additional information.
How can I enable DEBUG??
Thanks!!
That's a setting in your logging framework.
Any update on this issue?
Closing this ticket because of inactivity.
I wrote a simple program main function to connect with Azure Redis cache using Lettuce 4.3.0 Final. I set a key value pair but i got this error:
When I switched it to 4.2.2 Final package, it can successfully set key value and get those value from keys.