booty-cache
Dead sexy URL caching utility for Express/Connect
Last updated 7 years ago by balderdashy .
MIT · Repository · Original npm · Tarball · package.json
$ cnpm 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 (7 years ago)

1 Versions

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

Copyright 2014 - 2016 © taobao.org |