We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2c07db7 + 4e0162a commit 7b407a6Copy full SHA for 7b407a6
lib/redis.js
@@ -69,7 +69,7 @@ exports.configureFactory = function( options, queue ) {
69
70
// redefine getKey to use the configured prefix
71
client.getKey = function( key ) {
72
- if( client.constructor.name == 'Redis' ) {
+ if( client.constructor.name == 'Redis' || client.constructor.name == 'Cluster') {
73
// {prefix}:jobs format is needed in using ioredis cluster to keep they keys in same node
74
// otherwise multi commands fail, since they use ioredis's pipeline.
75
return '{' + this.prefix + '}:' + key;
0 commit comments