Comparing version 0.4.0 to 0.5.0
@@ -1,8 +0,1 @@ | ||
var crc = require('crc') | ||
module.exports.dispatch = function(uid, servers) { | ||
var idx = Math.abs(parseInt(crc.crc32(uid.toString()), 16)) % servers.length | ||
return servers[idx] | ||
} | ||
function rand(min, max) { | ||
@@ -9,0 +2,0 @@ if (min < 0) { |
{ | ||
"name": "easy-redis", | ||
"version": "0.4.0", | ||
"version": "0.5.0", | ||
"description": "Just write a config file,you can get one of redis connection with different topic", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
5554
134