Commit 41e3ed791d1e8cdafef360052d2409f667e5899a
1 parent
7922024d
#feat:将二级缓存默认缓存时间从120秒修改为1800秒
Showing
1 changed file
with
1 additions
and
1 deletions
src/main/java/com/irrigation/icl/cache/LayeringCacheAutoFactory.java
| ... | ... | @@ -36,7 +36,7 @@ public class LayeringCacheAutoFactory { |
| 36 | 36 | |
| 37 | 37 | RedisCacheWriter redisCacheWriter = RedisCacheWriter |
| 38 | 38 | .nonLockingRedisCacheWriter(redisTemplate.getConnectionFactory()); |
| 39 | - long expire = layeringCacheProperties.getExpire() > 0L ? layeringCacheProperties.getExpire() : 120L; | |
| 39 | + long expire = layeringCacheProperties.getExpire() > 0L ? layeringCacheProperties.getExpire() : 1800L; | |
| 40 | 40 | RedisCacheConfiguration redisCacheConfiguration = RedisCacheConfiguration |
| 41 | 41 | .defaultCacheConfig() |
| 42 | 42 | .entryTtl(Duration.ofSeconds(expire)); | ... | ... |