dobi-cache-2
TypeScript icon, indicating that this package has built-in type declarations

5.0.9 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i dobi-cache-2

Homepage

www.dobi.io

Weekly Downloads

144

Version

5.0.9

License

none

Unpacked Size

77.5 kB

Total Files

25

Last publish

Collaborators

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