feat(cache): 新增 Spring Cache 自动配置

This commit is contained in:
2024-01-13 23:50:41 +08:00
parent 8936268038
commit e090083ba2
6 changed files with 145 additions and 0 deletions

View File

@@ -0,0 +1 @@
top.charles7c.continew.starter.cache.springcache.autoconfigure.SpringCacheAutoConfiguration

View File

@@ -0,0 +1,7 @@
--- ### Spring Cache 配置
spring.cache:
redis:
# 缓存过期时长(单位:毫秒,默认 -1表示永不过期
time-to-live: 7200000
# 是否允许缓存空值(默认 true表示允许可以解决缓存穿透问题
cache-null-values: true