Skip to content

Commit

Permalink
修复REDIS CLIENT缓存问题
Browse files Browse the repository at this point in the history
  • Loading branch information
hefangshi committed Feb 21, 2017
1 parent 673a631 commit 72d4b59
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/ext/protocol/redisProtocol.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,10 @@ RedisProtocol.prototype.getName = function () {
};

RedisProtocol.prototype.getConfigKey = function (config) {
return [config.server, config.port].join('_');
return [config.serviceID, config.server.host, config.server.port].join('_');
};

RedisProtocol.prototype.normalizeConfig = RedisProtocol.normalizeConfig = function (config) {
var self = this;
config.redisConf = config.redisConf || {};
// 关闭path与url定位,统一使用IP与端口
config.redisConf.path = null;
Expand Down

0 comments on commit 72d4b59

Please sign in to comment.