Socket
Socket
Sign inDemoInstall

express-cache-router

Package Overview
Dependencies
0
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    express-cache-router

Router cache middleware for express. Useful for caching some pages like /home.


Version published
Weekly downloads
3
increased by200%
Maintainers
1
Install size
1.71 kB
Created
Weekly downloads
 

Readme

Source

express-cache-router

Router cache middleware for koa. Useful for caching some pages like /home.

Install

npm i express-cache-router --save

Usage

var router = require('express').Router();
var CacheMiddleware = require('express-cache-router');
router.use('/home', CacheMiddleware({
    expire:5*60*1000
}));

router.get('/home', function*(){
    res.end('body');
});

Options :

  • expire: expire time, use ms. (Required)

License

MIT

Keywords

FAQs

Last updated on 17 Sep 2015

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc