✏️ Fix: 캐시 키 변경 & 커스텀 캐시 Evict 로직 구현 #143
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
🚀 개요
캐시 키를 변경했으며, 커스텀 Evict 로직을 구현했습니다.
이전에는 스크랩 API 호출시, 해당 캐시의 모든 엔트리를 모두 삭제하도록 했는데,
운영환경에서는 내부의 Redis커맨드가 막혀있어서 실행이 되지 않아 스크랩 개수 정합성을 보장하지 못했습니다.
대신 브리핑의 type을 키로잡고 스크랩 API 호출시 해당 키의 엔트리만 삭제하도록 했습니다.