Skip to content

Commit

Permalink
Add brief documentation that redisCluster is also supported
Browse files Browse the repository at this point in the history
  • Loading branch information
glensc committed Sep 8, 2020
1 parent c490cf6 commit c129e00
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -261,10 +261,14 @@ You can also pass redis client directly.

```javascript
// assume you already initialized redis client before
// the "redis" key can be IORedis.Redis or IORedis.Cluster instance

var redisClient = new Redis();
var connectionDetails = { redis: redisClient };

var redisCluster = new Cluster();
var connectionDetails = { redis: redisCluster };

var worker = new NodeResque.Worker(
{ connection: connectionDetails, queues: "math" },
jobs
Expand Down

0 comments on commit c129e00

Please sign in to comment.