booty-cache

Dead sexy URL caching utility for Express/Connect

booty

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(reqres) {
    res.send('This route is now cached for 3600 seconds!')
})
cacheRoute = require('booty')
 
var Controller = {
    route: cacheRoute(60*60)(function(reqres) {
        res.send('This route is now cached for 3600 seconds!')
    })
}