From e2421e2c140ddc4c4dd50336569b4a63986b8b06 Mon Sep 17 00:00:00 2001 From: lulz1 Date: Mon, 1 Jul 2024 23:08:53 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E5=A2=9E=E5=8A=A0redis=E7=BC=93=E5=AD=98?= =?UTF-8?q?=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../chint/infrastructure/config/redis/RedisConfiguration.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/chint/infrastructure/config/redis/RedisConfiguration.java b/src/main/java/com/chint/infrastructure/config/redis/RedisConfiguration.java index 4e23e854..f31029d9 100644 --- a/src/main/java/com/chint/infrastructure/config/redis/RedisConfiguration.java +++ b/src/main/java/com/chint/infrastructure/config/redis/RedisConfiguration.java @@ -27,7 +27,7 @@ public class RedisConfiguration { @Bean public RedisCacheManager cacheManager() { RedisCacheConfiguration config = RedisCacheConfiguration.defaultCacheConfig() - .entryTtl(Duration.ofHours(2)); // 设置缓存过期时间为1小时 + .entryTtl(Duration.ofHours(6)); // 设置缓存过期时间为1小时 return RedisCacheManager.builder(connectionFactory) .cacheDefaults(config) .build();