Created by: cmarkle27
This allows for Bull to be used with custom Redis clients including libs that use sentinels.
For example:
return Queue('myqueue', { redis: { opts: { createClient: function() { return new ioredis({ "name": "my-redis", "sentinels": [ { "host": "redis-a.xyz.com", "port": 26379 }, { "host": "redis-b.xyz.com", "port": 26379 }, { "host": "redis-c.xyz.com", "port": 26379 } ] }); } } } });