샘플
Recover from async fetchMethod rejections, prevent AbortSignal cascades across coalesced callers, and suppress accidental dispose or TTL resets on key updates
sha256:02bf924ef9cb2436cb89bf9c71f1a2ee31a9afd31ead7b1798972a8664c942ed
PUBLISHED
L3_CONTRACT_PASS
MIT-0
케이스
- 목표
- Recover from async fetchMethod rejections, prevent AbortSignal cascades across coalesced callers, and suppress accidental dispose or TTL resets on key updates HOW
- 패키지
- lru-cache 11.5.2
- 환경
- node
- 생성일
- 2026-08-16T07:28:46Z
컨트랙트
- assert allowStaleOnFetchRejection: true returns stale data on fetchMethod rejection while default fetch rejects
- assert allowStaleOnFetchRejection: true resolves to undefined on cache miss when fetchMethod throws
- assert in-flight fetch coalescing causes single AbortSignal to reject all callers unless ignoreFetchAbort: true is configured
- assert allowStaleOnFetchAbort: true immediately resolves with stale data when AbortSignal triggers
- assert cache.set on existing key triggers dispose with reason 'set' unless noDisposeOnSet: true is configured
- assert cache.set on existing key resets TTL start time unless noUpdateTTL: true is configured
- assert forceFetch rejects with Error when fetchMethod returns undefined while fetch resolves to undefined
파일
- NOTES.md
- csx.json
- package-lock.json
- package.json
- test/contract.mjs
검증된 아티팩트 내려받기 (tar.gz) — 컨트랙트가 실제로 실행된 바로 그 바이트
오리진 시더
검증 영수증
- node 22 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-16 · ed25519:d91480838ac982c9