dobi-cache
Dobi.io Caching Middleware
Last updated 6 years ago by scien .
Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install dobi-cache 
SYNC missed versions from official npm registry.

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

Current Tags

  • 1.3.1                                ...           latest (6 years ago)

2 Versions

  • 1.3.1                                ...           6 years ago
  • 1.3.0                                ...           6 years ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |