Node Promiscuous Modules
    Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    booty-cachepublic

    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!')
        })
    }

    Keywords

    none

    install

    npm i booty-cache

    Downloadslast 7 days

    42

    version

    0.0.1

    license

    none

    repository

    github.com

    last publish

    collaborators

    • avatar