/outputcache

Cache api responses using Redis, Memcached or any cache provider for NodeJS

Primary LanguageJavaScriptISC LicenseISC

With added supports for CORS

The only difference from outputcache is that ismga-outputcache uses the origin header from request in the cache key, if available.


Version

Installation

npm install ismga-outputcache --save

Initialize

const OutputCache = require('ismga-outputcache');
const xoc = new OutputCache({options}); //see api below