@@ -78,31 +78,33 @@ public CacheManager cacheManager(RedisConnectionFactory redisConnectionFactory)
7878 Map <String , RedisCacheConfiguration > cacheConfigs = new HashMap <>();
7979
8080
81- // 개별 캐시 설정
8281 // Post, Comment 등 역직렬화 문제 생기는 것들은 우리가 임의로 설정해주기
82+ // 개별 캐시 설정
8383 cacheConfigs .put (
8484 "facilityNear" ,
85- defaultConfig .entryTtl (Duration .ofSeconds ( 60 ))
85+ defaultConfig .entryTtl (Duration .ofMinutes ( 5 ))
8686 );
8787 cacheConfigs .put (
8888 "facilityMarkers" ,
89- defaultConfig .entryTtl (Duration .ofSeconds ( 60 ))
89+ defaultConfig .entryTtl (Duration .ofMinutes ( 5 ))
9090 );
91+
9192 cacheConfigs .put (
9293 "postList" ,
9394 RedisCacheConfiguration .defaultCacheConfig ()
9495 .serializeValuesWith (
9596 RedisSerializationContext .SerializationPair .fromSerializer (postListValueSerializer )
9697 )
97- .entryTtl (Duration .ofSeconds ( 30 ))
98+ .entryTtl (Duration .ofMinutes ( 5 ))
9899 );
100+
99101 cacheConfigs .put (
100102 "commentList" ,
101103 RedisCacheConfiguration .defaultCacheConfig ()
102104 .serializeValuesWith (
103105 RedisSerializationContext .SerializationPair .fromSerializer (commentListSerializer )
104106 )
105- .entryTtl (Duration .ofSeconds ( 30 ))
107+ .entryTtl (Duration .ofMinutes ( 5 ))
106108 );
107109
108110 cacheConfigs .put (
@@ -111,7 +113,7 @@ public CacheManager cacheManager(RedisConnectionFactory redisConnectionFactory)
111113 .serializeValuesWith (
112114 RedisSerializationContext .SerializationPair .fromSerializer (commentCountSerializer )
113115 )
114- .entryTtl (Duration .ofSeconds ( 30 ))
116+ .entryTtl (Duration .ofMinutes ( 5 ))
115117 );
116118
117119 cacheConfigs .put (
@@ -120,7 +122,7 @@ public CacheManager cacheManager(RedisConnectionFactory redisConnectionFactory)
120122 .serializeValuesWith (
121123 RedisSerializationContext .SerializationPair .fromSerializer (likeStatusSerializer )
122124 )
123- .entryTtl (Duration .ofSeconds ( 15 ))
125+ .entryTtl (Duration .ofMinutes ( 5 ))
124126 );
125127
126128 // JWT 인증 필터에서 사용하는 사용자 인증 정보 캐시 (TTL: 5분)
0 commit comments