CacheResolver
Summary
In-memory cache to retrieve and set values based on promise resolution.
Usage
Node.js
Install to your project using npm:
npm install cache-resolver --save-dev
Use it:
var CacheResolver = ;var cache = ; // first resolve, uses callback to resolve promise and save in cachecache; // second resolve, run in parallel to first, reuses first callback promisecache;
Browser
Browser distribution files are checked into github with the source. See Document bundles for details on which bundle is right for you.
API
See API Documentation.