Skip to content
Branch: master
Find file History
Latest commit 676255f Apr 11, 2019
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
src License header updated Jan 18, 2019
README.md
pom.xml [maven-release-plugin] prepare for next development iteration Apr 5, 2019

README.md

Spring Boot Starter

Integrates Redisson with Spring Boot library. Depends on Spring Data Redis module.

Supports Spring Boot 1.3.x, 1.4.x, 1.5.x, 2.0.x, 2.1.x

Consider Redisson PRO version for advanced features and support by SLA.

Usage

1. Add redisson-spring-boot-starter dependency into your project:

Maven

     <dependency>
         <groupId>org.redisson</groupId>
         <artifactId>redisson-spring-boot-starter</artifactId>
         <version>3.10.6</version>
     </dependency>

Gradle

     compile 'org.redisson:redisson-spring-boot-starter:3.10.6'

2. Add settings into application.settings file

Common spring boot settings or Redisson settings could be used.

# 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

#path to redisson.yaml or redisson.json
spring.redis.redisson.config=classpath:redisson.yaml

3. Use Redisson through spring bean with RedissonClient interface or RedisTemplate/ReactiveRedisTemplate objects

You can’t perform that action at this time.