1

I have configured Redisson for Spring Boot. It works fine using RedissonClient. But is it possible to configure Redisson for RedisTemplate. I searched in the web but not found any solution.

@Configuration
public class RedissionConfig {

    @Bean
    public Config configRedis() throws IOException {
        return Config.fromYAML(new File("src/main/resources/config/redission-config.yml"));
    }

    @Bean
    public RedissonClient redissonClient() throws IOException {
        return Redisson.create(configRedis());
    }
}
shovon
  • 109
  • 1
  • 3
  • 6

1 Answers1

1

Yes it can be used as RedisTemplate. Below is instruction:

https://github.com/redisson/redisson/tree/master/redisson-spring-data

Nikita Koksharov
  • 10,283
  • 1
  • 62
  • 71