You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
redisson/redisson-spring-data
Nikita Koksharov 432225605e lib updated 12 months ago
..
redisson-spring-data-16 [maven-release-plugin] prepare for next development iteration 12 months ago
redisson-spring-data-17 [maven-release-plugin] prepare for next development iteration 12 months ago
redisson-spring-data-18 [maven-release-plugin] prepare for next development iteration 12 months ago
redisson-spring-data-20 Fixed - ReactiveKeyCommands.pExpire() throws an exception. #5640 12 months ago
redisson-spring-data-21 Fixed - ReactiveKeyCommands.pExpire() throws an exception. #5640 12 months ago
redisson-spring-data-22 Fixed - ReactiveKeyCommands.pExpire() throws an exception. #5640 12 months ago
redisson-spring-data-23 Fixed - ReactiveKeyCommands.pExpire() throws an exception. #5640 12 months ago
redisson-spring-data-24 Fixed - ReactiveKeyCommands.pExpire() throws an exception. #5640 12 months ago
redisson-spring-data-25 Fixed - ReactiveKeyCommands.pExpire() throws an exception. #5640 12 months ago
redisson-spring-data-26 Fixed - ReactiveKeyCommands.pExpire() throws an exception. #5640 12 months ago
redisson-spring-data-27 Fixed - ReactiveKeyCommands.pExpire() throws an exception. #5640 12 months ago
redisson-spring-data-30 Fixed - ReactiveKeyCommands.pExpire() throws an exception. #5640 12 months ago
redisson-spring-data-31 Fixed - ReactiveKeyCommands.pExpire() throws an exception. #5640 12 months ago
redisson-spring-data-32 lib updated 12 months ago
README.md version updated 1 year ago
pom.xml Fixed - ReactiveKeyCommands.pExpire() throws an exception. #5640 12 months ago

README.md

Spring Data Redis integration

Integrates Redisson with Spring Data Redis library. Implements Spring Data's RedisConnectionFactory and ReactiveRedisConnectionFactory interfaces and allows to interact with Redis through RedisTemplate or ReactiveRedisTemplate object.

Usage

1. Add redisson-spring-data dependency into your project:

Maven

     <dependency>
         <groupId>org.redisson</groupId>
         <!-- for Spring Data Redis v.1.6.x -->
         <artifactId>redisson-spring-data-16</artifactId>
         <!-- for Spring Data Redis v.1.7.x -->
         <artifactId>redisson-spring-data-17</artifactId>
         <!-- for Spring Data Redis v.1.8.x -->
         <artifactId>redisson-spring-data-18</artifactId>
         <!-- for Spring Data Redis v.2.0.x -->
         <artifactId>redisson-spring-data-20</artifactId>
         <!-- for Spring Data Redis v.2.1.x -->
         <artifactId>redisson-spring-data-21</artifactId>
         <!-- for Spring Data Redis v.2.2.x -->
         <artifactId>redisson-spring-data-22</artifactId>
         <!-- for Spring Data Redis v.2.3.x -->
         <artifactId>redisson-spring-data-23</artifactId>
         <!-- for Spring Data Redis v.2.4.x -->
         <artifactId>redisson-spring-data-24</artifactId>
         <!-- for Spring Data Redis v.2.5.x -->
         <artifactId>redisson-spring-data-25</artifactId>
         <!-- for Spring Data Redis v.2.6.x -->
         <artifactId>redisson-spring-data-26</artifactId>
         <!-- for Spring Data Redis v.2.7.x -->
         <artifactId>redisson-spring-data-27</artifactId>
         <!-- for Spring Data Redis v.3.0.x -->
         <artifactId>redisson-spring-data-30</artifactId>
         <!-- for Spring Data Redis v.3.1.x -->
         <artifactId>redisson-spring-data-31</artifactId>
         <!-- for Spring Data Redis v.3.2.x -->
         <artifactId>redisson-spring-data-32</artifactId>
         <version>3.26.0</version>
     </dependency>

Gradle

     // for Spring Data Redis v.1.6.x
     compile 'org.redisson:redisson-spring-data-16:3.26.0'
     // for Spring Data Redis v.1.7.x
     compile 'org.redisson:redisson-spring-data-17:3.26.0'
     // for Spring Data Redis v.1.8.x
     compile 'org.redisson:redisson-spring-data-18:3.26.0'
     // for Spring Data Redis v.2.0.x
     compile 'org.redisson:redisson-spring-data-20:3.26.0'
     // for Spring Data Redis v.2.1.x
     compile 'org.redisson:redisson-spring-data-21:3.26.0'
     // for Spring Data Redis v.2.2.x
     compile 'org.redisson:redisson-spring-data-22:3.26.0'
     // for Spring Data Redis v.2.3.x
     compile 'org.redisson:redisson-spring-data-23:3.26.0'
     // for Spring Data Redis v.2.4.x
     compile 'org.redisson:redisson-spring-data-24:3.26.0'
     // for Spring Data Redis v.2.5.x
     compile 'org.redisson:redisson-spring-data-25:3.26.0'
     // for Spring Data Redis v.2.6.x
     compile 'org.redisson:redisson-spring-data-26:3.26.0'
     // for Spring Data Redis v.2.7.x
     compile 'org.redisson:redisson-spring-data-27:3.26.0'
     // for Spring Data Redis v.3.0.x
     compile 'org.redisson:redisson-spring-data-30:3.26.0'
     // for Spring Data Redis v.3.1.x
     compile 'org.redisson:redisson-spring-data-31:3.26.0'
     // for Spring Data Redis v.3.2.x
     compile 'org.redisson:redisson-spring-data-32:3.26.0'

2. Register RedissonConnectionFactory in Spring context

 @Configuration
 public class RedissonSpringDataConfig {

    @Bean
    public RedissonConnectionFactory redissonConnectionFactory(RedissonClient redisson) {
        return new RedissonConnectionFactory(redisson);
    }

    @Bean(destroyMethod = "shutdown")
    public RedissonClient redisson(@Value("classpath:/redisson.yaml") Resource configFile) throws IOException {
        Config config = Config.fromYAML(configFile.getInputStream());
        return Redisson.create(config);
    }

 }

Try Redisson PRO with ultra-fast performance and support by SLA.