From c129e0008b252f4484b5d07ab0181ee468a33265 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elan=20Ruusam=C3=A4e?= Date: Tue, 8 Sep 2020 11:56:56 +0300 Subject: [PATCH] Add brief documentation that redisCluster is also supported --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index a58bf85e..44c20268 100644 --- a/README.md +++ b/README.md @@ -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