Changelog - 2026-09-12
A Redis cluster takes autoConnect like every other topology
EnhancementIn one line. RedisClusterHelper now takes autoConnect, so lazy connect no longer needs raw ioredis options.
typescript
new RedisClusterHelper({
name: 'cache-cluster',
nodes,
autoConnect: false,
clusterOptions: { redisOptions: { password } },
});What changed
autoConnect. SetslazyConnectto!autoConnect, the rule single and sentinel already follow. UseautoConnect: falsewhen a component connects the cluster during boot, otherwise a secondconnect()is refused.enableOfflineQueue: trueis stated. It was already the effective behaviour, but came from the ioredis default. It is now set by IGNIS, so an ioredis upgrade cannot move it.- Your
clusterOptionsstill wins. The defaults are applied below it ({ enableOfflineQueue: true, lazyConnect: !autoConnect, ...clusterOptions }). A caller passingclusterOptions: { lazyConnect: true }orenableOfflineQueue: falsekeeps exactly that. This is the one place cluster differs from sentinel, where the first-class fields win.
Who is affected
- You pass
clusterOptionstoday. Nothing. Your options still win. You may replace a hand-writtenlazyConnectwithautoConnect: false. - You pass no
clusterOptions. Nothing. The defaultautoConnect: trueresolves tolazyConnect: false, as before.
Details
RedisClusterHelperstill does not applybuildDefaultOpts: no backoffretryStrategyand nomaxRetriesPerRequest: null. Pass either insideclusterOptions.redisOptionswhen a consumer such as BullMQ needs it.