Skip to content

Commit 7b407a6

Browse files
committed
Merge remote-tracking branch 'origin/master'
2 parents 2c07db7 + 4e0162a commit 7b407a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/redis.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ exports.configureFactory = function( options, queue ) {
6969

7070
// redefine getKey to use the configured prefix
7171
client.getKey = function( key ) {
72-
if( client.constructor.name == 'Redis' ) {
72+
if( client.constructor.name == 'Redis' || client.constructor.name == 'Cluster') {
7373
// {prefix}:jobs format is needed in using ioredis cluster to keep they keys in same node
7474
// otherwise multi commands fail, since they use ioredis's pipeline.
7575
return '{' + this.prefix + '}:' + key;

0 commit comments

Comments
 (0)