1.3.1 • Published 10 years ago

dobi-cache v1.3.1

Weekly downloads
8
License
-
Repository
github
Last release
10 years ago

== Usage

  cache = require('dobi-cache')(config)
  app.get '/', (req, res, next) ->
    console.log 'do something'
    cache('5 minutes', (next) ->
      next 'hello world'
    )(req, res, next)

  app.get '/foo', cache '5 minutes', (next) ->
    next 'data'

  app.get '/bar', cache {
    age: 300
    query: ['name', 'title']
  }

  app.get '/bar', cache {
    age: '5 minutes'
    query: '*'
  }
1.3.1

10 years ago

1.3.0

10 years ago