Created
November 11, 2019 08:57
-
-
Save hynra/5f2442c2a7d499979ea1908fff674ea0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const Redis = require("ioredis"); | |
const client = (Config.isSentinel === 'true') ? new Redis({ | |
sentinels: Config.sentinels, | |
name: "mymaster" | |
}) : new Redis({ | |
host: Config.redis.host, | |
port: Config.redis.port, | |
password: Config.redis.password | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment