dobi-cache

1.3.1 • Public • Published

== 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: '*'
  }

Readme

Keywords

Package Sidebar

Install

npm i dobi-cache

Homepage

www.dobi.io

Weekly Downloads

5

Version

1.3.1

License

none

Last publish

Collaborators

  • shazimajaz
  • ferm9494
  • luiz-maestro
  • sterlbuck
  • barbaradorame
  • maestro-devops-robot
  • eldade
  • bruno-albino
  • deliton
  • uzielvaldez
  • alexalmadav
  • marioario
  • sjanderson
  • scien
  • jasongornall