build(cache): 集成配置 caffeine 本地缓存和 redis 远程缓存

This commit is contained in:
xiongxiaoyang
2022-05-12 11:15:37 +08:00
parent b8113b0176
commit 051fd6342e
6 changed files with 224 additions and 0 deletions

14
pom.xml
View File

@ -58,6 +58,20 @@
<scope>test</scope>
</dependency>
<!-- 缓存相关 -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-cache</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-redis</artifactId>
</dependency>
<dependency>
<groupId>com.github.ben-manes.caffeine</groupId>
<artifactId>caffeine</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>