Quantcast
Channel: Active questions tagged redis+java - Stack Overflow
Viewing all articles
Browse latest Browse all 2205

Lettuce Using RedisAsyncCommands with non String,String codec

$
0
0

I want to initialise Lettuce's RedisAsyncCommands with (K,V) different as <String,String> which is the default in case of Lettuce. How can I do that?

RedisURI redisUri = RedisURI.builder().withHost(configuration.getTelematicsRedis().getHost()).withPort(configuration.getTelematicsRedis().getPort()).build();RedisClient client = RedisClient.create(redisUri);RedisAsyncCommands<String, String> redisAsyncCommands = client.connect().async();

I went through the lettuce documentation and some other online links but it's still not clear to me.

Thanks in advance.


Viewing all articles
Browse latest Browse all 2205

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>