Comparing version 0.1.2 to 0.1.3
@@ -31,3 +31,3 @@ var poolModule = require('generic-pool') | ||
CacheCluster.prototype.setCapacity = function (uri, capacity, opts, warmUpMs) { | ||
CacheCluster.prototype.setNodeCapacity = function (uri, capacity, opts, warmUpMs) { | ||
if (!capacity && !this._servers[uri]) return | ||
@@ -34,0 +34,0 @@ |
{ | ||
"name": "zcache" | ||
, "description": "AWS zone-aware caching" | ||
, "version": "0.1.2" | ||
, "version": "0.1.3" | ||
, "homepage": "https://github.com/azulus/zcache" | ||
@@ -6,0 +6,0 @@ , "authors": [ |
@@ -41,5 +41,5 @@ var zcache = require('../index') | ||
}) | ||
cacheInstance.setCapacity('localhost:11212', 10, {type: 'memcache'}, 0) | ||
cacheInstance.setCapacity('localhost:11213', 5, {type: 'memcache'}, 0) | ||
cacheInstance.setCapacity('localhost:11212', 5, {type: 'memcache'}, 0) | ||
cacheInstance.setNodeCapacity('localhost:11212', 10, {type: 'memcache'}, 0) | ||
cacheInstance.setNodeCapacity('localhost:11213', 5, {type: 'memcache'}, 0) | ||
cacheInstance.setNodeCapacity('localhost:11212', 5, {type: 'memcache'}, 0) | ||
@@ -46,0 +46,0 @@ test.equal(cacheInstance.isAvailable(), false, "Connection should not be available") |
@@ -33,4 +33,4 @@ var zcache = require('../index') | ||
}) | ||
memcacheCluster.setCapacity('localhost:11212', 5, {memcache: true}, 0) | ||
memcacheCluster.setCapacity('localhost:11213', 5, {memcache: true}, 0) | ||
memcacheCluster.setNodeCapacity('localhost:11212', 5, {memcache: true}, 0) | ||
memcacheCluster.setNodeCapacity('localhost:11213', 5, {memcache: true}, 0) | ||
@@ -37,0 +37,0 @@ var redisInstance = new zcache.RedisConnection('localhost', 6379) |
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
63496