structure-cache-middleware

1.1.5 • Public • Published

structure-cache-middleware

Route caching on RethinkDB

Usage

Cache a route

import cache from 'structure-cache-middleware'
app.get('/', cache(<TTL in seconds>), function (req, res)  { ... })

Invalidate all cached routes for an application

import {Cache} from 'structure-cache-middleware'
const cache = new Cache()
cache.invalidateApplication(applicationId)

Package Sidebar

Install

npm i structure-cache-middleware

Weekly Downloads

20

Version

1.1.5

License

Apache-2.0

Unpacked Size

37.6 kB

Total Files

22

Last publish

Collaborators

  • mparkerdfy
  • johnomarkid
  • tom-james-watson
  • chrisabrams