Skip to content

unei66/jedis-spring-boot-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jedis-spring-boot-starter

License Release Version Build Status

Overview

Jedis Spring Boot Starter.

Quick Start

1. pom.xml

<dependency>
    <groupId>io.dreamstudio</groupId>
    <artifactId>jedis-spring-boot-starter</artifactId>
    <version>0.1.0</version>
</dependency>

2. application.yml

1.Redis standalone

redis:
  database: 0
  host: localhost
  port: 6379
  password: root
  pool:
    max-active: 50
    max-idle: 1
    min-idle: 0
    max-wait: 5000

2.Redis sentinel

redis:
  sentinel:
    master: mymaster
    nodes: 192.168.101.1:6379,192.168.102.1:6379,192.168.103.1:6379
  password: root
  pool:
    max-active: 50
    max-idle: 1
    min-idle: 0
    max-wait: 5000

3.Redis cluster

redis:
  cluster:
    nodes: 192.168.101.1:6379,192.168.102.1:6379,192.168.103.1:6379
    max-redirects: 3
  password: root
  pool:
    max-active: 50
    max-idle: 1
    min-idle: 0
    max-wait: 5000

Releases

No releases published

Packages

No packages published

Languages