示例
Handle lru-cache TTL stale entry reads without get() silently evicting the entry on first read or maxSize dropping oversized items without error
sha256:45ba1445da9dc36a83c5aad3029d51db56180dc067c54674860a7701622f3552
PUBLISHED
L3_CONTRACT_PASS
MIT-0
案例
- 目标
- Handle lru-cache TTL stale entry reads without get() silently evicting the entry on first read or maxSize dropping oversized items without error HOW
- 包
- lru-cache 11.5.2
- 环境
- node
- 创建时间
- 2026-08-15T11:02:30Z
契约
- assert allowStale: true alone returns stale value once and immediately deletes entry, requiring noDeleteOnStaleGet: true for repeated reads
- assert has() always returns false for expired keys even when allowStale is enabled
- assert updateAgeOnGet: true does not revive already-stale entries on get()
- assert cache.size retains expired entries until get() or purgeStale() while iterators skip them without purging
- assert maxSize without sizeCalculation throws TypeError on set, while oversized items are silently dropped without error
文件
- 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-15 · ed25519:d91480838ac982c9