Use SENTINEL REPLICAS instead of SENTINEL SLAVES
Author: aurrilCreated Jun 16, 2022Updated Jul 26, 2022
Labelsfeaturehelp-wanted
Is your feature request related to a problem? Please describe. For Redis Sentinel instances that support the SENTINEL REPLICAS command (Redis >= 5.0) it should be preferable to use it instead of SENTINEL SLAVES.
Describe the solution you'd like Before querying for replicas the running server version should be checked. Depending on the version either the SENTINEL REPLICAS command (Redis >= 5.0) or the current SENTINEL SLAVES command (Redis < 5.0) will be used.
Describe alternatives you've considered An alternative would be to use both commands and take the output of the first successful one.
Additional context
Source: predis/predis