booty-cache
Dead sexy URL caching utility for Express/Connect
Last updated 12 years ago by balderdashy .
MIT · Repository · Original npm · Tarball · package.json
$ npm install booty-cache 
SYNC missed versions from official npm registry.

booty

Like a pirate's treasure booty, not the dirty kind of booty.

What it does

Dynamically cache routes in express!

npm install "git://github.com/balderdashy/booty.git"

How to use with Express

cacheRoute = require('booty')
 
app.get('/', cacheRoute(60*60), function(req, res) {
    res.send('This route is now cached for 3600 seconds!')
})

How to use with Sails

cacheRoute = require('booty')

var Controller = {
    route: cacheRoute(60*60)(function(req, res) {
        res.send('This route is now cached for 3600 seconds!')
    })
}

Current Tags

  • 0.0.1                                ...           latest (12 years ago)

1 Versions

  • 0.0.1                                ...           12 years ago
Maintainers (1)
Downloads
Total 2
Today 1
This Week 1
This Month 1
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dev Dependencies (0)
None
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE