add env for redis pwd and port
This commit is contained in:
parent
0c1ce9f598
commit
e2dde364eb
2 changed files with 12 additions and 0 deletions
|
@ -10,6 +10,8 @@ module.exports = function(config) {
|
|||
const redis = require(redis_lib);
|
||||
const client = redis.createClient({
|
||||
host: config.redis_host,
|
||||
port: config.redis_port,
|
||||
password: config.redis_password,
|
||||
retry_strategy: options => {
|
||||
if (options.total_retry_time > config.redis_retry_time) {
|
||||
client.emit('error', 'Retry time exhausted');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue