$ npm install booty-cache
Like a pirate's treasure booty, not the dirty kind of booty.
Dynamically cache routes in express!
npm install "git://github.com/balderdashy/booty.git"
cacheRoute = require('booty')
app.get('/', cacheRoute(60*60), function(req, res) {
res.send('This route is now cached for 3600 seconds!')
})
cacheRoute = require('booty')
var Controller = {
route: cacheRoute(60*60)(function(req, res) {
res.send('This route is now cached for 3600 seconds!')
})
}
© 2010 - cnpmjs.org x YWFE | Home | YWFE