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();