From ed2a5112d0cc4e604226c6a3a1f39ca8730dd739 Mon Sep 17 00:00:00 2001 From: Nikita Koksharov Date: Fri, 27 Sep 2024 14:42:06 +0300 Subject: [PATCH] Update README.md --- redisson-spring-data/README.md | 103 +-------------------------------- 1 file changed, 1 insertion(+), 102 deletions(-) diff --git a/redisson-spring-data/README.md b/redisson-spring-data/README.md index 8e2aec4a4..4931ba6df 100644 --- a/redisson-spring-data/README.md +++ b/redisson-spring-data/README.md @@ -1,102 +1 @@ -# 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 - -```xml - - org.redisson - - redisson-spring-data-16 - - redisson-spring-data-17 - - redisson-spring-data-18 - - redisson-spring-data-20 - - redisson-spring-data-21 - - redisson-spring-data-22 - - redisson-spring-data-23 - - redisson-spring-data-24 - - redisson-spring-data-25 - - redisson-spring-data-26 - - redisson-spring-data-27 - - redisson-spring-data-30 - - redisson-spring-data-31 - - redisson-spring-data-32 - - redisson-spring-data-33 - 3.36.0 - -``` - -Gradle - -```groovy - // for Spring Data Redis v.1.6.x - compile 'org.redisson:redisson-spring-data-16:3.36.0' - // for Spring Data Redis v.1.7.x - compile 'org.redisson:redisson-spring-data-17:3.36.0' - // for Spring Data Redis v.1.8.x - compile 'org.redisson:redisson-spring-data-18:3.36.0' - // for Spring Data Redis v.2.0.x - compile 'org.redisson:redisson-spring-data-20:3.36.0' - // for Spring Data Redis v.2.1.x - compile 'org.redisson:redisson-spring-data-21:3.36.0' - // for Spring Data Redis v.2.2.x - compile 'org.redisson:redisson-spring-data-22:3.36.0' - // for Spring Data Redis v.2.3.x - compile 'org.redisson:redisson-spring-data-23:3.36.0' - // for Spring Data Redis v.2.4.x - compile 'org.redisson:redisson-spring-data-24:3.36.0' - // for Spring Data Redis v.2.5.x - compile 'org.redisson:redisson-spring-data-25:3.36.0' - // for Spring Data Redis v.2.6.x - compile 'org.redisson:redisson-spring-data-26:3.36.0' - // for Spring Data Redis v.2.7.x - compile 'org.redisson:redisson-spring-data-27:3.36.0' - // for Spring Data Redis v.3.0.x - compile 'org.redisson:redisson-spring-data-30:3.36.0' - // for Spring Data Redis v.3.1.x - compile 'org.redisson:redisson-spring-data-31:3.36.0' - // for Spring Data Redis v.3.2.x - compile 'org.redisson:redisson-spring-data-32:3.36.0' - // for Spring Data Redis v.3.3.x - compile 'org.redisson:redisson-spring-data-33:3.36.0' -``` - -### 2. Register `RedissonConnectionFactory` in Spring context - -```java - @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); - } - - } -``` -Upgrade to __[Redisson PRO](https://redisson.pro)__ with **advanced features**. +## The documentation has been moved to [https://redisson.org/docs/integration-with-spring/#spring-data-redis](https://redisson.org/docs/integration-with-spring/#spring-data-redis)