From cd80942dd8744e363cda5586293242fddcfced4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=8D=E7=88=B1=E5=AD=A6=E4=B9=A0=E7=9A=84=E7=9F=B3?= =?UTF-8?q?=E5=90=8C=E5=AD=A6?= <2936013465@qq.com> Date: Fri, 13 Dec 2024 18:00:32 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9C=B0=E5=9B=BE=E7=BC=93=E5=AD=98=E6=94=B9?= =?UTF-8?q?=E4=B8=BA24=E5=B0=8F=E6=97=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/biutag/supervision/config/RedisCacheConfig.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/biutag/supervision/config/RedisCacheConfig.java b/src/main/java/com/biutag/supervision/config/RedisCacheConfig.java index e90ae21..8ffbf0e 100644 --- a/src/main/java/com/biutag/supervision/config/RedisCacheConfig.java +++ b/src/main/java/com/biutag/supervision/config/RedisCacheConfig.java @@ -20,7 +20,7 @@ public class RedisCacheConfig { public RedisCacheManager cacheManager(RedisConnectionFactory redisConnectionFactory) { // 配置统一的缓存过期时间 RedisCacheConfiguration cacheConfiguration = RedisCacheConfiguration.defaultCacheConfig() - .entryTtl(Duration.ofHours(4)); // + .entryTtl(Duration.ofHours(24)); // // 创建一个缓存管理器,使用默认配置,并为所有缓存设置统一的过期时间 RedisCacheManager res = RedisCacheManager.builder(redisConnectionFactory)