mirror of
https://github.com/continew-org/continew-starter.git
synced 2025-09-27 08:57:14 +08:00
feat(cache): 新增 Spring Cache 自动配置
This commit is contained in:
@@ -0,0 +1 @@
|
||||
top.charles7c.continew.starter.cache.springcache.autoconfigure.SpringCacheAutoConfiguration
|
@@ -0,0 +1,7 @@
|
||||
--- ### Spring Cache 配置
|
||||
spring.cache:
|
||||
redis:
|
||||
# 缓存过期时长(单位:毫秒,默认 -1,表示永不过期)
|
||||
time-to-live: 7200000
|
||||
# 是否允许缓存空值(默认 true,表示允许,可以解决缓存穿透问题)
|
||||
cache-null-values: true
|
Reference in New Issue
Block a user