throttle-async-function
JSON →throttle-async-function (v1.2.0) is an npm package that caches the results of async function calls based on arguments, effectively throttling execution by serving cached results for repeated calls. It offers configurable cache refresh period, max age, LRU eviction, retry on failure, and hit rate reporting. Unlike simple memoization libraries, it includes a cache refresh mechanism that proactively re-fetches data while still serving stale results, and exposes utilities like callWithoutCache and clearCache. The package has a low release cadence with no major changes since initial release.
Resources
packagethrottle-async-function ↗
API endpoints
full doc /v1/registry/throttle-async-function