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)