asynchronous-cache

JSON →
library 1.1.0 ·javascript
verified Jun 7, 2026

Simple asynchronous in-memory cache for deduplicating concurrent calls to async functions. v1.1.0, no dependencies. Key differentiator: caches promises, not just values, so concurrent calls for the same key share a single pending promise, preventing duplicate execution. Supports optional TTL per entry. Minimal API: executeWithCache, delete, clear.