Cache
캐시
캐시는 빠르고 잠시 저장해 두는 데이터나 결과 복사본이에요. 기다리는 시간과 반복되는 일을 줄여줘요.
다른 예시
제품 목록은 캐시에 5분 동안 저장돼요. 재고가 업데이트되면 그 복사본은 바로 지워져요.
주요 부분
- 01Originating request
- 02Resolution or processing hop
- 03Response, timing, and failure
사용할 때
연령 제한, 소유자, 키 및 무효화 규칙이 명확할 때만 캐시를 사용하세요.
다음 경우에는 사용하지 마세요
민감한 데이터, 사용자 전용 데이터, 또는 빠르게 변하는 데이터를 공유 키 아래에 절대 캐시하지 마세요.
코드에서 사용된 이름
Cache-Control / Redis / CDN 출시하기 전에
Check contracts and invariants, authorization, and input limits. Test retries, one-time effects, timeouts, and partial failures. Verify data integrity, compatibility, monitoring, recovery, and rollback.
Outcome:Complete the task with 캐시 (Cache)。 User context:제품 목록은 캐시에 5분 동안 저장돼요. 재고가 업데이트되면 그 복사본은 바로 지워져요. Technical concept or control:캐시 (Cache)。 Why it fits:연령 제한, 소유자, 키 및 무효화 규칙이 명확할 때만 캐시를 사용하세요. Do not use it when:민감한 데이터, 사용자 전용 데이터, 또는 빠르게 변하는 데이터를 공유 키 아래에 절대 캐시하지 마세요. Engineering requirements: Define inputs, outputs, contracts, and rules that must always hold. Set authorization and input checks. Define failures, timeouts, retries, one-time effects, data moves, and compatibility limits. Operations: Add useful signals and logs that hide sensitive data. Set capacity limits and write an operator guide. Test recovery and rollback. Acceptance criteria: Contract and failure-path tests pass. Data and authorization rules still hold during retries and partial failures. Check performance limits, monitoring, recovery, and rollback. Evidence and limits (evidence boundary):하나의 공식 표준이 전체 용어를 통제하지 않음. 의미는 팀, 플랫폼 또는 프레임워크마다 달라질 수 있음. Unknowns to confirm: Where the code runs, data stores, traffic shape, consistency needs, and the security boundary. Also confirm the compatibility period, service goals, and rollback limits.
이 요청을 확인하세요
Review how 캐시 (Cache) is used now. Definition: 캐시는 빠르고 잠시 저장해 두는 데이터나 결과 복사본이에요. 기다리는 시간과 반복되는 일을 줄여줘요. Release checks: Check contracts and invariants, authorization, and input limits. Test retries, one-time effects, timeouts, and partial failures. Verify data integrity, compatibility, monitoring, recovery, and rollback. Before changing code, list the evidence, gaps, severity, and the smallest safe fix.