Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Update redisProtocol.js #1

Merged
merged 1 commit into from
Sep 20, 2020
Merged

Update redisProtocol.js #1

merged 1 commit into from
Sep 20, 2020

Conversation

n3g2
Copy link
Owner

@n3g2 n3g2 commented Sep 20, 2020

support multiple Redis servers connection with auth.
// like this config
const redisConfig = {
protocol: 'redis',
pack: 'redis',
unpack: 'redis',
balance: 'random',
protocol: 'redis',
server:[
{
host: '10.x.x.1.',
port: 8379,
password: '123abc'
},
{
host: '10.x.x.2,
port: 8379,
password: 'abc123'
},
...more
]
};

support multiple Redis servers connection with auth.
// like this config
const redisConfig = {
    protocol: 'redis',
    pack: 'redis',
    unpack: 'redis',
    balance: 'random',
    protocol: 'redis',
    server:[
        {
            host: '10.x.x.1.',
            port: 8379,
            password: '123abc'
        },
        {
            host: '10.x.x.2,
            port: 8379,
            password: 'abc123'
        },
       ...more
    ]
};
@n3g2 n3g2 merged commit dfd35a5 into master Sep 20, 2020
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant