지도 내 클러스터 방식 다이어리 조회 API Redis 캐싱 적용 #52
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.
📌 PR 제목
✨ 변경 사항
캐싱 전략
Look Aside + Write Around
읽기 : 캐시에서 읽고, 캐시에 없으면 데이터베이스에서 읽는다. (캐시 미스 시 캐시를 업데이트하지 않는다.)
쓰기 : 캐시를 건너뛰고 데이터베이스에 저장한다.
데이터 쓰기 시 캐시가 업데이트되지 않으므로 캐시에 저장하기에 적절하지 않거나 자주 사용하지 않는 데이터 저장을 방지할 수 있지만, 캐시 히트율이 낮아질 수 있다.
사용예시 : 데이터가 자주 조회되지만 쓰기 빈도가 낮은 시스템, 캐시의 중요 데이터만 저장하고 싶을 때
🔍 변경 이유
✅ 체크리스트
📸 스크린샷 (선택)
📌 참고 사항