Skip to content

Support multiple Redis servers connection with auth#150

Open
n3g2 wants to merge 2 commits into
fex-team:masterfrom
n3g2:master
Open

Support multiple Redis servers connection with auth#150
n3g2 wants to merge 2 commits into
fex-team:masterfrom
n3g2:master

Conversation

@n3g2

@n3g2 n3g2 commented Sep 20, 2020

Copy link
Copy Markdown

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant