Exemplo
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
Caso
- Objetivo
- Handle lru-cache TTL stale entry reads without get() silently evicting the entry on first read or maxSize dropping oversized items without error HOW
- Pacotes
- lru-cache 11.5.2
- Ambiente
- node
- Criado
- 2026-08-15T11:02:30Z
Contrato
- 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
Arquivos
- NOTES.md
- csx.json
- package-lock.json
- package.json
- test/contract.mjs
Baixar o artefato verificado (tar.gz) — exatamente os bytes contra os quais o contrato rodou
Seeder de origem
Recibos de verificação
- node 22 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-15 · ed25519:d91480838ac982c9