Authored by 姜枫

处理降级zookeeper读取后,写入memcached

... ... @@ -45,7 +45,7 @@ app.locals.version = pkg.version;
// zookeeper
if (config.zookeeperServer) {
require('yoho-zookeeper')(config.zookeeperServer, 'pc', app.locals.pc = {});
require('yoho-zookeeper')(config.zookeeperServer, 'pc', app.locals.pc = {}, global.yoho.cache);
}
app.set('subdomain offset', 2);
... ...
... ... @@ -60,7 +60,7 @@
"serve-favicon": "^2.3.0",
"uuid": "^2.0.2",
"yoho-node-lib": "0.2.2",
"yoho-zookeeper": "^1.0.4"
"yoho-zookeeper": "^1.0.6"
},
"devDependencies": {
"autoprefixer": "^6.3.6",
... ...