-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor: 봉사 모집글 목록 조회 캐시를 개선한다. #461
Merged
Merged
Conversation
This file contains 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
hseong3243
requested review from
pushedrumex,
funnysunny08 and
bjo6300
as code owners
March 13, 2024 07:42
Test Results284 files - 6 284 suites - 6 23s ⏱️ -4s Results for commit 9083f54. ± Comparison against base commit 28e4936. This pull request removes 16 and adds 14 tests. Note that renamed tests count towards both.
♻️ This comment has been updated with latest results. |
long 파라미터에 인자로 int를 전달하지 않도록 수정함
캐시에서 삭제된 데이터가 없으면 캐시에 데이터를 추가하지 않도록 변경함
Quality Gate passedIssues Measures |
pushedrumex
approved these changes
Apr 19, 2024
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.
⛏ 작업 사항
캐싱된 봉사 모집글 제거
->업데이트된 봉사 모집글 캐시에 저장
과 같이 직관적인 구성으로 변경하였습니다.캐시에서 조회
->최대 캐시 크기보다 크면 제거
로 로직이 이루어진 탓에 동시성 이슈가 발생하고 있었습니다. 해당 로직을일정 범위만큼 제거(removeRange(KEY, 0, -MAX_CACHE_SIZE-1))
로 원자적인 연산이 이루어지도록 변경하였습니다.📝 작업 요약
💡 관련 이슈