Promise-based caching utility built on top of async-cache. Version 2.0.2 wraps async-cache to provide a promise-returning API. It uses bluebird for advanced promise features and immutable-object-methods for state management. Last updated in 2018, it is in maintenance mode with no recent updates. Key differentiator from similar libraries is its use of generators (co) for asynchronous flows, which is now outdated compared to native async/await.
npm install async-cache-promiseNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates creating a promise-based cache with a load function using co generators for async flow.
Use co to wrap generators or switch to a more modern caching library like cacache or node-cache.
Consider forking the library to remove this dependency or switch to an alternative.
Upgrade code to use promises and generators/async-await instead of callbacks.
Always use default import: import setupAsyncCache from 'async-cache-promise'.
Use default import: import setupAsyncCache from 'async-cache-promise';
Wrap code in co(function* () { ... }) or use async/await if you convert the cache API.Run: npm install bluebird