Skip to content

Commit

Permalink
fix: duplication
Browse files Browse the repository at this point in the history
  • Loading branch information
ChoiEungi committed Mar 31, 2024
1 parent 063b07d commit 29368e0
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions _posts/2024-03-31-spring-boot-cahce-error-handling.md
Original file line number Diff line number Diff line change
Expand Up @@ -193,23 +193,6 @@ public class CustomCacheErrorHandler extends SimpleCacheErrorHandler {
}
```

```java
@Slf4j
public class CustomCacheErrorHandler extends SimpleCacheErrorHandler {

@Override
public void handleCacheGetError(RuntimeException exception, Cache cache, Object key) {
if (exception instanceof SerializationException) {
log.warn("Failed to deserialize cache value for key: {}", key, exception);
return;
}

super.handleCacheGetError(exception, cache, key);
}

}
```

캐시 설정은 다음과 같습니다. 전체 캐시(Spring Boot Cache)에 대한 책임을 `CacheConfig`에 두었고 레디스 캐시 설정에 대한 책임을 `RedisCacheConfig`에 뒀습니다,

```java
Expand Down

0 comments on commit 29368e0

Please sign in to comment.