2012-07-10 00:56:09 +08:00
|
|
|
var _ = require('underscore');
|
|
|
|
|
2013-09-12 23:55:16 +08:00
|
|
|
|
|
|
|
require(__dirname + '/test_helper');
|
|
|
|
|
2012-07-10 00:56:09 +08:00
|
|
|
module.exports = function(opts) {
|
|
|
|
|
|
|
|
var config = {
|
|
|
|
redis_pool: {
|
|
|
|
max: 10,
|
|
|
|
idleTimeoutMillis: 1,
|
|
|
|
reapIntervalMillis: 1,
|
2013-09-12 23:55:16 +08:00
|
|
|
port: global.environment.redis.port
|
2012-07-10 00:56:09 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
_.extend(config, opts || {});
|
|
|
|
|
|
|
|
return config;
|
|
|
|
}();
|
|
|
|
|