From 29368e0a840d84772403ec591fc2116c46f45614 Mon Sep 17 00:00:00 2001 From: grace_goose Date: Mon, 1 Apr 2024 00:04:28 +0900 Subject: [PATCH] fix: duplication --- ...24-03-31-spring-boot-cahce-error-handling.md | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/_posts/2024-03-31-spring-boot-cahce-error-handling.md b/_posts/2024-03-31-spring-boot-cahce-error-handling.md index b7358ca..33eba7b 100644 --- a/_posts/2024-03-31-spring-boot-cahce-error-handling.md +++ b/_posts/2024-03-31-spring-boot-cahce-error-handling.md @@ -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