Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
behrad committed Apr 27, 2016
2 parents 2c07db7 + 4e0162a commit 7b407a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/redis.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ exports.configureFactory = function( options, queue ) {

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

0 comments on commit 7b407a6

Please sign in to comment.