mirror of
https://github.com/predis/predis.git
synced 2026-10-08 21:06:44 +00:00
5b76b41fda
Internally the replication class uses this order to pick which server it should connect to: current connection, one of the slaves, master. If there is at least 1 slave, connect() will not fail even if master is undefined. If there are no slaves, connect() will pick master. If there are no connections registered for replication, connect() will fail immediatly.