Skip to content

leahciMic/cache-middleware

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Cache middleware in Redis

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published