Bull: Options are not passed correctly to redis cluster

Created on 21 Jul 2017  路  3Comments  路  Source: OptimalBits/bull

If the RedisOpts is an array it should be passed to Redis.Cluster according to docs: https://github.com/luin/ioredis#cluster

enhancement

Most helpful comment

@thelinuxlich in the meantime this should work:

new Bull({
  redis: [ /* ... */ ]
  createClient: (type, config) => new Redis.Cluster(config);
});

All 3 comments

@thelinuxlich in the meantime this should work:

new Bull({
  redis: [ /* ... */ ]
  createClient: (type, config) => new Redis.Cluster(config);
});

works like a charm!

Do not forget to prefix appropriately or it will not work: https://github.com/OptimalBits/bull/blob/master/PATTERNS.md#redis-cluster

Was this page helpful?
0 / 5 - 0 ratings

Related issues

weeco picture weeco  路  3Comments

NicolasDuran picture NicolasDuran  路  4Comments

PhillippOhlandt picture PhillippOhlandt  路  4Comments

JSRossiter picture JSRossiter  路  3Comments

sarneeh picture sarneeh  路  3Comments