Reputation: 111
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());
}
}
Upvotes: 1
Views: 3903
Reputation: 10803
Yes it can be used as RedisTemplate. Below is instruction:
Upvotes: 2