bentocache icon indicating copy to clipboard operation
bentocache copied to clipboard

Redis cluster not supported in redisBusDriver

Open cloleb opened this issue 4 months ago • 0 comments

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 })),
    },
})

cloleb avatar Aug 14 '25 14:08 cloleb