redis-connection-pool
Advanced tools
Comparing version 1.0.1 to 1.1.0
{ | ||
"name": "redis-connection-pool", | ||
"version": "1.0.1", | ||
"version": "1.1.0", | ||
"description": "a redis client connection pool", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -31,3 +31,6 @@ node-redis-connection-pool | ||
max_clients: 30, //defalut | ||
perform_checks: false //checks for needed push/pop functionality | ||
perform_checks: false, //checks for needed push/pop functionality | ||
options: { | ||
auth_pass: 'password' | ||
} //options for createClient of node-redis, optional | ||
}); | ||
@@ -34,0 +37,0 @@ |
@@ -64,2 +64,3 @@ /** | ||
this.perform_checks = (typeof cfg.perform_checks === 'boolean') ? cfg.perform_checks : false; | ||
this.options = (typeof cfg.options === 'object') ? cfg.options : null; | ||
@@ -76,3 +77,3 @@ this.blocking_support = true; | ||
create: function (callback) { | ||
var client = redis.createClient(self.port, self.host); | ||
var client = redis.createClient(self.port, self.host, self.options); | ||
client.__name = "client" + i; | ||
@@ -79,0 +80,0 @@ i = i + 1; |
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
279040
3510
107