update 重写 spring-cache 实现 更人性化的操作 支持注解指定ttl等一些参数

This commit is contained in:
疯狂的狮子Li
2022-08-13 11:30:33 +08:00
parent 5d367b7bf8
commit 89c1e4f91d
6 changed files with 230 additions and 76 deletions

View File

@ -233,21 +233,6 @@ thread-pool:
# 线程池维护线程所允许的空闲时间
keepAliveSeconds: 300
--- # redisson 缓存配置
redisson:
cacheGroup:
# 用例: @Cacheable(cacheNames="groupId", key="#XXX") 方可使用缓存组配置
- groupId: redissonCacheMap
# 组过期时间(脚本监控)
ttl: 60000
# 组最大空闲时间(脚本监控)
maxIdleTime: 60000
# 组最大长度
maxSize: 0
- groupId: testCache
ttl: 1000
maxIdleTime: 500
--- # 分布式锁 lock4j 全局配置
lock4j:
# 获取分布式锁超时时间,默认为 3000 毫秒