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-boot-starter/README.md

70 lines
1.6 KiB
Markdown

Spring Boot Starter
===
6 years ago
Integrates Redisson with Spring Boot library. Depends on [Spring Data Redis](https://github.com/redisson/redisson/tree/master/redisson-spring-data#spring-data-redis-integration) module.
7 years ago
Supports Spring Boot 1.3.x, 1.4.x, 1.5.x, 2.0.x
6 years ago
<sub>Please consider __[Redisson PRO](https://redisson.pro)__ version for advanced features and support by SLA.</sub>
Usage
===
### 1. Add `redisson-spring-boot-starter` dependency into your project:
1. __For JDK 1.8+__
Maven
```xml
<dependency>
<groupId>org.redisson</groupId>
<artifactId>redisson-spring-boot-starter</artifactId>
6 years ago
<version>3.9.1</version>
</dependency>
```
Gradle
```java
6 years ago
compile 'org.redisson:redisson-spring-boot-starter:3.9.1'
```
2. __For JDK 1.6+__
Maven
```xml
<dependency>
<groupId>org.redisson</groupId>
<artifactId>redisson-spring-boot-starter</artifactId>
6 years ago
<version>2.14.1</version>
</dependency>
```
Gradle
```java
6 years ago
compile 'org.redisson:redisson-spring-boot-starter:2.14.1'
```
7 years ago
### 2. Add settings into `application.settings` file
7 years ago
```properties
# common spring boot settings
spring.redis.database=
spring.redis.host=
spring.redis.port=
spring.redis.password=
spring.redis.ssl=
spring.redis.timeout=
spring.redis.cluster.nodes=
spring.redis.sentinel.master=
spring.redis.sentinel.nodes=
# Redisson settings
7 years ago
#path to redisson.yaml or redisson.json
7 years ago
spring.redis.redisson.config=classpath:redisson.yaml
```
### 3. Get access to Redisson through spring bean with `RedissonClient` interface
6 years ago