Skip to content
Advertisement

Tag: redis

Embedded Redis for Spring Boot

I run my Integration Test cases with Spring Boot with the help of my local Redis server on my machine. But I want an embedded Redis server which is not dependent on any server and can run on any environment, like the H2 in-memory database. How can I do it? Answer You can use an embedded Redis like https://github.com/kstyrc/embedded-redis Add

Get Set value from Redis using RedisTemplate

I am able to retrieve values from Redis using Jedis: But when I am trying to use Spring’s RedisTemplate , I am not getting any data. My data is stored in Redis as a Set. Can someone please point out to me what am I missing? EDIT : My xml config for RedisTemplate. Answer In short You have to configure

Advertisement