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

USAGE

  const Cache = require('dobi-cache');
  const { cache, flushCache } = new Cache({
    disabled: false,
    keyPrefix: 'myKeyPrefix',
    redisUri: 'localhost'
  });


  app.get('/', cache('5 minutes'), (ctx) => {
    ctx.body = 'hello world'
  })

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

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

Current Tags

  • 4.1.6                                ...           latest (6 months ago)

33 Versions

  • 4.1.6                                ...           6 months ago
  • 4.1.5                                ...           6 months ago
  • 4.1.4                                ...           6 months ago
  • 4.1.3                                ...           6 months ago
  • 4.1.2                                ...           6 months ago
  • 4.1.1                                ...           6 months ago
  • 4.1.0                                ...           6 months ago
  • 4.0.6                                ...           2 years ago
  • 4.0.5                                ...           2 years ago
  • 4.0.4                                ...           2 years ago
  • 4.0.3                                ...           2 years ago
  • 4.0.2                                ...           2 years ago
  • 4.0.1                                ...           2 years ago
  • 4.0.0                                ...           2 years ago
  • 3.0.11                                ...           2 years ago
  • 3.0.10                                ...           2 years ago
  • 3.0.9                                ...           2 years ago
  • 3.0.8                                ...           2 years ago
  • 3.0.7                                ...           2 years ago
  • 3.0.6                                ...           2 years ago
  • 3.0.4                                ...           2 years ago
  • 3.0.3                                ...           2 years ago
  • 3.0.2                                ...           2 years ago
  • 3.0.1                                ...           2 years ago
  • 3.0.0                                ...           2 years ago
  • 2.0.0                                ...           2 years ago
  • 1.7.3                                ...           2 years ago
  • 1.7.2                                ...           2 years ago
  • 1.7.1                                ...           2 years ago
  • 1.7.0                                ...           2 years ago
  • 1.6.0                                ...           2 years ago
  • 1.5.0                                ...           2 years ago
  • 1.0.0                                ...           4 years ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 7
Last Month 7
Dependencies (10)
Dev Dependencies (12)
Dependents (2)

Copyright 2014 - 2017 © taobao.org |