uber-cache-express

0.0.1 • Public • Published

Uber Cache Express

A connect style route caching middleware for express using Uber Cache

Usage

var expressCache = new require('uber-cache-express')
  , uberCacheOptions = {}
  , cache = expressCache(uberCacheOptions)
 
app.get('/', cache(5000), function (req, res) {
  console.log('I should only be called once every 5 seconds')
  res.send('Hai World')
})

/uber-cache-express/

    Package Sidebar

    Install

    npm i uber-cache-express

    Weekly Downloads

    1

    Version

    0.0.1

    License

    none

    Last publish

    Collaborators

    • confuser