Skip to content

Conversation

@florianJacques
Copy link
Contributor

This Pull Request adds a new configuration key sentinel_hosts to define multiple Redis Sentinel instances.
No breaking changes are introduced: the existing configuration remains fully compatible.

New Configuration

If only a single instance is used, you can still use the sentinel_host and sentinel_port keys.

For multiple instances, the sentinel_hosts key now accepts a list of Sentinel hosts, each defined by a host and a port:

'sentinel_hosts' => [
    [
        'host' => '127.0.0.1',
        'port' => 26379,
    ],
    [
        'host' => '127.0.0.1',
        'port' => 26380,
    ],
],

@Namoshek
Copy link
Owner

Looks good so far. Can you please add documentation to the README as well?

@florianJacques
Copy link
Contributor Author

florianJacques commented Nov 21, 2025

Looks good so far. Can you please add documentation to the README as well?

Of course! Is Done.

I’ll let you take care of updating the documentation so that it is consistent with your writing style.

@Namoshek Namoshek changed the title Feat.sentinel selection Add support for multiple Redis Sentinel hosts Nov 21, 2025
@Namoshek Namoshek added documentation Improvements or additions to documentation enhancement New feature or request labels Nov 21, 2025
@Namoshek Namoshek merged commit a8ac266 into Namoshek:master Nov 21, 2025
6 checks passed
@Namoshek
Copy link
Owner

Thanks, released as v1.2.0.

@florianJacques
Copy link
Contributor Author

florianJacques commented Nov 21, 2025

Thanks, released as v1.2.0.

Oops, I think I forgot a comma in the code section of the documentation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants