{"library":"promise-memoize","type":"library","category":null,"description":"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.","language":"javascript","status":"active","version":"1.2.1","tags":["javascript","promise","memoize","cache"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install promise-memoize","imports":["const promiseMemoize = require('promise-memoize')","const memoize = require('promise-memoize')","import memoize = require('promise-memoize')"]},{"cmd":"yarn add promise-memoize","imports":[]},{"cmd":"pnpm add promise-memoize","imports":[]}],"homepage":"https://github.com/nodeca/promise-memoize#readme","github":"https://github.com/nodeca/promise-memoize","docs":null,"changelog":null,"pypi":null,"npm":"promise-memoize","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}