mirror of
https://github.com/predis/predis.git
synced 2026-10-06 03:47:57 +00:00
7664f1f29b
Predis\Client now requires a list of connection parameters pointing to sentinel instances and mandatory options "replication" and "service" set respectively to "sentinel" and the chosen name for the master instance. $sentinels = ['tcp://127.0.0.1:5381', 'tcp://127.0.0.1:5382']; $options = ['replication' => 'sentinel', 'service' => 'mymaster']; $client = new Predis\Client($sentinels, $options); Despite being nice and clean on the outside I am not really fond of the code being used internally to make this kind of configuration possible. Improvements in this respect would require a few breaking changes (not even an option for a minor release) so things will change for the good with Predis 2.0.