Skip to content

Commit

Permalink
perf($Starter): use lettuce for Redis
Browse files Browse the repository at this point in the history
use lettuce for Redis

BREAKING CHANGE: use lettuce for Redis
  • Loading branch information
johnnymillergh committed Feb 7, 2021
1 parent 553d4a3 commit c40c304
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 10 deletions.
1 change: 1 addition & 0 deletions auth-center/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ spring:
redis:
database: 0
timeout: 10000ms
client-type: LETTUCE
lettuce:
pool:
max-active: 20
Expand Down
1 change: 1 addition & 0 deletions exercise-mis/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ spring:
redis:
database: 0
timeout: 10000ms
client-type: LETTUCE
lettuce:
pool:
max-active: 20
Expand Down
1 change: 1 addition & 0 deletions muscle-mis/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ spring:
redis:
database: 0
timeout: 10000ms
client-type: LETTUCE
lettuce:
pool:
max-active: 20
Expand Down
1 change: 1 addition & 0 deletions spring-boot-admin/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ spring:
redis:
database: 0
timeout: 10000ms
client-type: LETTUCE
lettuce:
pool:
max-active: 20
Expand Down
19 changes: 9 additions & 10 deletions spring-cloud-starter/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-validation</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-redis</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-configuration-processor</artifactId>
Expand Down Expand Up @@ -107,21 +111,16 @@
<version>${druid-spring-boot-starter.version}</version>
</dependency>

<!-- Redis -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-redis</artifactId>
</dependency>
<dependency>
<groupId>redis.clients</groupId>
<artifactId>jedis</artifactId>
</dependency>

<!-- Swagger: JSON API documentation for Spring Cloud based applications (w/o web UI) -->
<dependency>
<groupId>com.github.xiaoymin</groupId>
<artifactId>knife4j-micro-spring-boot-starter</artifactId>
<version>${knife4j.version}</version>
</dependency>

<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-pool2</artifactId>
</dependency>
</dependencies>
</project>

0 comments on commit c40c304

Please sign in to comment.