cache-middleware

0.0.3 • Public • Published

Cache middleware in Redis

Note: This package is no longer actively maintained. At this time it's being downloaded around ~60 times per month. This will probably be the last version I release.

This middleware caches server responses in Redis. If you are using RedisToGo on Heroku this will automatically default to that, otherwise it will try and connect to a local Redis instance.

Install

npm install --save cache-middleware

Usage

 
var express = require('express'),
    cache = require('cache-middleware'),
    otherMiddlewareThatTakesForever = require('other-middleware'),
    app = express();
 
app.use(cache('otherMiddleware', otherMiddlewareThatTakesForever, 86400));

Readme

Keywords

none

Package Sidebar

Install

npm i cache-middleware

Weekly Downloads

0

Version

0.0.3

License

ISC

Last publish

Collaborators

  • leahcimic