systemic-redis
Advanced tools
Comparing version 2.1.0 to 2.1.1
10
index.js
@@ -29,4 +29,10 @@ module.exports = (options) => { | ||
logger.info(`Connecting to ${config.url || config.host || '127.0.0.1'}`); | ||
client = redis.createClient(config); | ||
// https://github.com/redis/node-redis#basic-example | ||
const host = config.url || config.host || '127.0.0.1'; | ||
const protocol = config.tls ? 'rediss://' : 'redis://'; | ||
logger.info(`Connecting to ${host} with protocol ${protocol} based on TLS config`); | ||
client = redis.createClient({ | ||
url: protocol + '@' + host + ':' + config.port, | ||
password: config.password, | ||
}); | ||
@@ -33,0 +39,0 @@ if (config.no_ready_check) { |
{ | ||
"name": "systemic-redis", | ||
"version": "2.1.0", | ||
"version": "2.1.1", | ||
"description": "A systemic redis component", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4209
63