目录
SpringCache 缓存
环境配置
1)依赖如下
父依赖 SpringBoot 3.2.5
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-cache</artifactId>
</dependency>
2)配置文件
spring:
cache:
type: redis
redis:
time-to-live: 3600000
# key-prefix: CACHE_
use-key-prefix: true