Skip to content

Commit

Permalink
fixed missed options.isRedisCluster
Browse files Browse the repository at this point in the history
  • Loading branch information
yinhewang authored and yinhewang committed Aug 6, 2018
1 parent 7592be7 commit 4f414dd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions index.js
Expand Up @@ -47,10 +47,10 @@ var RedisStore = module.exports = function (options) {
// client = redis.createClient(options);
//
// Apply ioredis, Add has redis cluster condition:
if (!options.isRedisCluster) {
client = redis.createClient(options);
} else {
if (options.isRedisCluster) {
client = new ioredis.Cluster(options.nodes, {redisOptions: options.redisOptions});
} else {
client = redis.createClient(options);
}
} else {
if (options.duplicate) { // Duplicate client and update with options provided
Expand Down

0 comments on commit 4f414dd

Please sign in to comment.