0.0.3 • Published 9 years ago

cache-middleware v0.0.3

Weekly downloads
-
License
ISC
Repository
-
Last release
9 years ago

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));
0.0.3

9 years ago

0.0.2

10 years ago

0.0.1

10 years ago

0.0.0

10 years ago