1.0.2 • Published 5 years ago
@webtanzhi/koa-redis-cache v1.0.2
缓存中间件
const koaRedisCache = require('@webtanzhi/koa-redis-cache');
koa.use(koaRedisCache({redisOption: { port: 6379, host: '127.0.0.1' }, paths: ['/', '/404], expireSeconds: 3000}))
const koaRedisCache = require('@webtanzhi/koa-redis-cache');
koa.use(koaRedisCache({redisOption: { port: 6379, host: '127.0.0.1' }, paths: ['/', '/404], expireSeconds: 3000}))