[DP-387] 트렌드 Redis 캐시 무효화 Internal API#134
Merged
Conversation
|
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.



Summary
DELETE /internal/trends/cache—X-Internal-Key헤더 인증,APP_TREND_CACHE_EVICT_KEY환경변수로 키 설정periodStart없으면:latest키만 삭제, 있으면:latest+ 해당 기간 키 함께 삭제Changes
TrendAnalysisServiceevictCache(unit, scope, periodStart)메서드 추가InternalTrendCacheControllerDELETE /internal/trends/cache엔드포인트 신규SecurityConfig/internal/trends/cacheDELETE permitAll 추가AI 서버 연동 스펙
Test plan
InternalTrendCacheControllerTest— 5케이스 (키 정상/불일치/없음/미설정, periodStart 유무)./gradlew build --no-daemon통과Jira: https://devpick.atlassian.net/browse/DP-387