p-async-cache

JSON →
library 1.0.3 ·javascript
verified Jun 7, 2026

Promise-based async cache that deduplicates concurrent lookups by caching the promise itself rather than the resolved value. Version 1.0.3 is stable with no recent updates (last published 2017). It wraps lru-cache to provide a simple API for caching async operations, including stale value support and automatic background refresh. Key differentiators: lightweight, no dependencies beyond lru-cache, and supports sync/async load functions.