Skip to content

Commit

Permalink
feat: Cache Default TTL 1시간에서 30분으로 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
Libienz committed Jan 1, 2025
1 parent 37b982c commit ca123ae
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
@Configuration
public class CacheConfig {

private static final Duration CACHE_TTL = Duration.ofMinutes(30);

@Bean
public CacheManager cacheManager(RedisConnectionFactory connectionFactory) {
return RedisCacheManager.builder(connectionFactory)
Expand All @@ -39,7 +41,7 @@ private RedisCacheConfiguration getRedisCacheConfiguration() {
return RedisCacheConfiguration.defaultCacheConfig()
.serializeKeysWith(keySerializationPair)
.serializeValuesWith(valueSerializationPair)
.entryTtl(Duration.ofHours(1L))
.entryTtl(CACHE_TTL)
.disableCachingNullValues();
}

Expand Down

0 comments on commit ca123ae

Please sign in to comment.