Comparing version 1.0.9 to 1.0.10
## Changelog | ||
### v1.0.10 - April 25, 2015 | ||
* [UPDATE] Improve performance for calculating slots. | ||
### v1.0.9 - April 25, 2015 | ||
@@ -4,0 +8,0 @@ |
@@ -222,3 +222,3 @@ /** | ||
} | ||
return crc16(key) % 16384; | ||
return crc16(key) & 16383; | ||
}; |
{ | ||
"name": "ioredis", | ||
"version": "1.0.9", | ||
"version": "1.0.10", | ||
"description": "A delightful, performance-focused Redis client for Node and io.js", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -52,3 +52,3 @@ // var noderedis = require('redis'); | ||
}]); | ||
cluster.object('encoding', 'foo', function (err, res) { | ||
cluster.mget('foo13', 'foo', function (err, res) { | ||
console.log(err, res); | ||
@@ -55,0 +55,0 @@ }); |
@@ -104,2 +104,3 @@ var utils = require('../../lib/utils'); | ||
expect(utils.calcSlot('ab}')).to.eql(11817); | ||
expect(utils.calcSlot('encoding')).to.eql(3060); | ||
}); | ||
@@ -106,0 +107,0 @@ }); |
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
1503217
56
3926