Repository navigation
자체 상태 캐시와 캐시 응답 헤더 도입 - #2
Merged
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.
서버 상태 조회의 캐시 저장 시각과 재사용 여부를 제공하도록 fastapi-cache2를 자체 캐시 계층으로 교체합니다.
CACHE_BACKEND=redis|memory와 60초 TTL을 유지합니다. Redis 항목에 응답과 생성 시각을 함께 저장하고, 인메모리는 프로세스별 TTL·최대 10,000개 LRU 제한을 적용합니다.X-Cache: HIT/MISS/BYPASS와X-Cache-Created-At만 제공합니다. HIT에서는 최초 저장 시각을 유지하며, Redis 장애로 저장하지 않은 응답에는 생성 시각을 제공하지 않습니다.검증: Python 3.10, 변경된 requirements.txt만 설치한 환경에서 실제 Redis 7과 로컬 TCP 테스트를 포함한 37개 테스트가 모두 통과했습니다. 동시 요청 병합·주소별 병렬 처리·취소 격리·실패 후 재시도·종료 정리·캐시 생성 시각 보존·TTL·요청 헤더 무시·응답 헤더 제한·오류 비캐싱·Redis 장애 대체·인메모리 만료 및 용량 제한을 확인했습니다. 운영 배포는 수행하지 않았습니다.