spring-data-redisredisson

Is there a spring data redis mapping the Redisson framework


As the title says, was there a spring data redis mapping to the Redisson framework (http://redisson.org)


Solution

  • Short answer

    There is Spring Data Redis integration

    Long answer

    Consider Spring Data Redis integration as another type of connector or binding (check here for the connector term). The library provides RedissonConnectionFactory (implements RedisConnectionFactory) which would be the base for working with e.g. @RedisHash and spring cache abstraction (@EnableCaching). There's also a redisson-spring-boot-starter but make sure not to have lettuce or jedis in classpath because org.springframework.boot.autoconfigure.data.redis.RedisAutoConfiguration (provided by spring-boot-autoconfigure) might create a RedisConnectionFactory before org.redisson.spring.starter.RedissonAutoConfiguration (provided by redisson-spring-boot-starter)!