koa-router-cache Router cache middleware for koa@1. Install npm i koa-router-cache --save Usage cache(app, options) Options: key: {String|GeneratorFunction} cache key. (Required) expire: {Number} expire time, in ms. (Required) get: {GeneratorFunction} custom getter function for getting...
value function cache value builder. having args (ctx) and must return {type, value} Usage Simple code: const Koa = require('koa'); const Router = require('koa-oai-router'); const middlewareLoader = require('koa-oai-router-middleware'); const cacheHandler = require('koa-oai-router-cache...