Official redis cache for next-boost
npm install @next-boost/redis-cache 
A redis-based cache for next-boost. If you have a cluster of next-boost running, using this plugin to share the cache between instances.
``bash`
npm i @next-boost/redis-cache
`javascript
// in .next-boost.js
const RedisCache = require('@next-boost/redis-cache/dist/adapter').default
module.exports = {
cacheAdapter: RedisCache.init({
uri: 'redis://
ttl: 15,
tbd: 3600,
}),
rules: [
...
],
}
`
You can also provide an ioredis client or or cluster instance if you need advanced configuration
`javascript``
cacheAdapter: RedisCache.init({
redis: new Redis.Cluster({...}),
ttl: 15,
tbd: 3600,
})
MIT. Copyright 2020, Rakuraku Jyo.