const koaRedisCache = require('@webtanzhi/koa-redis-cache');
koa.use(koaRedisCache({redisOption: { port: 6379, host: '127.0.0.1' }, paths: ['/', '/404], expireSeconds: 3000}))
waanhappy / koa-redis-cache Goto Github PK
View Code? Open in Web Editor NEWKoa Cache Plug-in Using redis as Cache