Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Added ability to use Redis Sentinel configuration #18850

Merged
merged 3 commits into from
Apr 18, 2017
Merged

Added ability to use Redis Sentinel configuration #18850

merged 3 commits into from
Apr 18, 2017

Commits on Apr 18, 2017

  1. Added ability to use Redis Sentinel configuration

    These changes make it possible to use Redis Sentinel with Laravel/Lumen and Predis, configuration example:
    ```
    return [
       // ...
        'redis' => [
            'client' => 'predis',
            'sentinel' => [
                'tcp://10.24.5.136:26379?timeout=0.100',
                'tcp://10.24.5.137:26379?timeout=0.100',
                'tcp://10.24.5.138:26379?timeout=0.100',
                'options' => [
                    'replication' => 'sentinel',
                    'service' => env('REDIS_SENTINEL_SERVICE', 'mymaster'),
                    'parameters' => [
                        'password' => env('REDIS_PASSWORD', null),
                        'database' => 0,
                    ],
                ],
            ],
        ],
    ];
    ```
    It's very important to call Arr::pull($config, 'options', []) before passing it to Client.
    mingalevme committed Apr 18, 2017
    Configuration menu
    Copy the full SHA
    aa80116 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    d869fef View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    e582f00 View commit details
    Browse the repository at this point in the history