skip to Main Content

Connection to Redis Cache using Spring Data Redis

I am trying to connect to Redis Cluster using Spring Data Redis. Below are is how I configured it. import org.springframework.data.redis.connection.RedisStandaloneConfiguration; import org.springframework.data.redis.connection.jedis.JedisConnectionFactory; import org.springframework.data.redis.connection.lettuce.LettuceConnectionFactory; import org.springframework.data.redis.core.RedisTemplate; @Configuration public class RedisConfig { @Bean public JedisConnectionFactory jedisConnectionFactory(){ RedisStandaloneConfiguration config= new RedisStandaloneConfiguration("server",portno);…

VIEW QUESTION

Mongodb – aggregate match subarray

I trying to match the data in Subarray for some reason it is grouped like this. Data : { "_id": 1, "addresDetails": [ [ { "Name":"John", "Place":"Berlin", "Pincode":"10001" }, { "Name":"Sarah", "Place":"Newyork", "Pincode":"10002" } ], [ { "Name":"Mark", "Place":"Tokyo", "Pincode":"10003"…

VIEW QUESTION

Redis streams publisher can't find command XADD

I got few errors from redis streams first is: org.springframework.data.redis.RedisSystemException: Error in execution; nested exception is io.lettuce.core.RedisCommandExecutionException: ERR unknown command 'XREADGROUP' and the second is when I try to create stream publisher but I got error org.springframework.data.redis.RedisSystemException: Error in execution;…

VIEW QUESTION
Back To Top
Search