bentocache
bentocache copied to clipboard
Redis cluster not supported in redisBusDriver
Related to https://github.com/Julien-R44/bentocache/issues/87
import { Cluster } from 'ioredis'
const cluster = new Cluster(
[
{
host: "...",
port: 1234,
},
],
)
const bento = new BentoCache({
default: 'redis',
stores: {
redis: bentostore()
.useL1Layer(memoryDriver())
.useL2Layer(redisDriver({ connection: cluster }))
// Not supported
.useBus(redisBusDriver({ connection: cluster })),
},
})