Skip to content

Commit

Permalink
refactor: 줄바꿈 제거 (#358)
Browse files Browse the repository at this point in the history
  • Loading branch information
penrose15 committed Sep 9, 2024
1 parent 1a10a1c commit 0521591
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
@Configuration
@EnableCaching
public class RedisCacheConfig {

@Bean
public CacheManager contentCacheManager(RedisConnectionFactory cf) {
RedisCacheConfiguration redisCacheConfiguration =
Expand All @@ -25,9 +24,8 @@ public CacheManager contentCacheManager(RedisConnectionFactory cf) {
new StringRedisSerializer()))
.serializeValuesWith(
RedisSerializationContext.SerializationPair.fromSerializer(
new GenericJackson2JsonRedisSerializer())) // Value
// Serializer 변경
.entryTtl(Duration.ofHours(3L)); // 캐시 수명 3 시간
new GenericJackson2JsonRedisSerializer()))
.entryTtl(Duration.ofHours(3L));

return RedisCacheManager.RedisCacheManagerBuilder.fromConnectionFactory(cf)
.cacheDefaults(redisCacheConfiguration)
Expand Down

0 comments on commit 0521591

Please sign in to comment.