promise-memoize

JSON →
library 1.2.1 ·javascript
verified Jun 7, 2026

Memoize promise-returning functions with cache expiration and prefetch. v1.2.1 is the latest stable release. Key differentiators: prefetch occurs before expiry to avoid stale data, errors can be cached separately with a shorter TTL, and it supports custom argument serialization. Uses a simple string or JSON-based cache key resolution. Similar to p-memoize but with built-in prefetch.