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

Support multiple Redis servers connection with auth #150

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

n3g2
Copy link

@n3g2 n3g2 commented Sep 20, 2020

When using multiple redis connections with auth, you want to support the following configuration.

const config = {
    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
    ]
};
Update redisProtocol.js
Support multiple Redis servers connection with auth.
# 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