Skip to content

Commit

Permalink
refactor: cache ttl ์ˆ˜์ •
Browse files Browse the repository at this point in the history
  • Loading branch information
jemin committed Apr 8, 2024
1 parent 9854d2f commit 5d18fd7
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ public CacheManager customCacheManager(CircuitBreakerFactory circuitBreakerFacto
Map<String, RedisCacheConfiguration> redisCacheConfigMap = new ConcurrentHashMap<>();
redisCacheConfigMap.put(CacheNames.USER, defaultConfig.entryTtl(Duration.ofHours(1)));
redisCacheConfigMap.put(CacheNames.SCRAP, defaultConfig.entryTtl(Duration.ofHours(1)));
redisCacheConfigMap.put(CacheNames.MEMORY, defaultConfig.entryTtl(Duration.ofMinutes(10)));
redisCacheConfigMap.put(CacheNames.GROUP, defaultConfig.entryTtl(Duration.ofMinutes(10)));
redisCacheConfigMap.put(CacheNames.MEMORY, defaultConfig.entryTtl(Duration.ofMinutes(5)));
redisCacheConfigMap.put(CacheNames.GROUP, defaultConfig.entryTtl(Duration.ofMinutes(5)));

RedisCacheManager redisCacheManager = RedisCacheManager.builder(redisCacheConnectionFactory())
.withInitialCacheConfigurations(redisCacheConfigMap).build();
Expand Down

0 comments on commit 5d18fd7

Please sign in to comment.