redis-connection-pool
Advanced tools
Comparing version 0.1.2 to 0.1.3
{ | ||
"name": "redis-connection-pool", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"description": "a redis client connection pool", | ||
@@ -5,0 +5,0 @@ "license": "LGPL", |
@@ -89,7 +89,9 @@ /** | ||
redisCheck.apply(this, []); | ||
if (self.DEBUG) { | ||
setTimeout(function poolStats() { | ||
// periodically report pool statistics | ||
console.log('REDIS POOL: [size: ' + pool.getPoolSize() + | ||
' avail:' + pool.availableObjectsCount() + | ||
console.log('REDIS POOL: [size: ' + pool.getPoolSize() + | ||
' avail:' + pool.availableObjectsCount() + | ||
' waiting:' + pool.waitingClientsCount() + ']'); | ||
@@ -100,3 +102,2 @@ setTimeout(poolStats, 300000); | ||
redisCheck.apply(this, []); | ||
return this; | ||
@@ -345,3 +346,3 @@ } | ||
* | ||
* promise which, on completion will return a version number as a string. | ||
* promise which, upon completion, will return a version number as a string. | ||
*/ | ||
@@ -348,0 +349,0 @@ RedisConnectionPool.prototype.check = function () { |
@@ -35,7 +35,8 @@ if (typeof define !== 'function') { | ||
{ | ||
desc: "verify version properties are set", | ||
desc: "#check()", | ||
timeout: 2000, | ||
run: function (env, test) { | ||
test.assertTypeAnd(env.redisPool.VERSION_STRING, 'string'); | ||
test.assertType(env.redisPool.VERSION_ARRAY, 'object'); | ||
env.redisPool.check().then(function (redis_version) { | ||
test.assertType(redis_version, 'string'); | ||
}); | ||
} | ||
@@ -45,8 +46,7 @@ }, | ||
{ | ||
desc: "#check()", | ||
desc: "verify version properties are set", | ||
timeout: 2000, | ||
run: function (env, test) { | ||
env.redisPool.check().then(function (redis_version) { | ||
test.assertType(redis_version, 'string'); | ||
}); | ||
test.assertTypeAnd(env.redisPool.VERSION_STRING, 'string'); | ||
test.assertType(env.redisPool.VERSION_ARRAY, 'object'); | ||
} | ||
@@ -197,2 +197,2 @@ }, | ||
return suites; | ||
}); | ||
}); |
Sorry, the diff of this file is not supported yet
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
279335
3519