refactor: 대학 캐시 무효화 정책 추가#660
Open
Gyuhyeok99 wants to merge 2 commits intosolid-connection:developfrom
Open
Conversation
Walkthrough호스트 대학 관리 서비스에 캐싱 메커니즘이 도입되었습니다. 변경사항은 다음과 같습니다:
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Suggested reviewers
🚥 Pre-merge checks | ✅ 4 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
⚔️ Resolve merge conflicts (beta)
No actionable comments were generated in the recent review. 🎉 🧹 Recent nitpick comments
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
whqtker
requested changes
Feb 15, 2026
| if (keys != null && !keys.isEmpty()) { | ||
| redisTemplate.delete(keys); | ||
| } | ||
| } |
Member
There was a problem hiding this comment.
CacheManager 인터페이스에 해당 추상 메서드 작성해주세요 !!
| } | ||
| } | ||
|
|
||
| private void evictUnivApplyInfoDetailCaches(Long hostUniversityId) { |
Member
There was a problem hiding this comment.
마지막으로 해당 메서드를 호출하는 곳이 updateHostUniversity이기에 해당 메서드 밑에 선언부를 위치시켜주세요 !
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
관련 이슈
작업 내용
지난주 논의대로 대학 캐시 무효화 정책을 추가하였습니다.
1. 캐시 무효화 로직 추가
AdminHostUniversityService
createHostUniversity,updateHostUniversity,deleteHostUniversity메서드에@DefaultCacheOut어노테이션 적용univApplyInfoTextSearch:*(텍스트 검색 결과 캐시)university:recommend:general(추천 대학 목록 캐시)univApplyInfo:{id}(대학 지원 정보 상세 캐시 - update 시에만)2. 배치 캐시 삭제 기능 추가
CustomCacheManager
evictMultiple(List<String> keys)메서드 추가UnivApplyInfoRepository
findIdsByUniversityId(Long universityId)쿼리 메서드 추가3. 효율적인 상세 캐시 무효화
AdminHostUniversityService
evictUnivApplyInfoDetailCaches(Long hostUniversityId)private 메서드 추가특이 사항
리뷰 요구사항 (선택)