Update README.

[ci skip]
This commit is contained in:
Daniele Alessandri
2014-07-25 13:11:29 +02:00
parent dd1b63ae3b
commit 647c51a5b3
+1
View File
@@ -140,6 +140,7 @@ commands on slave nodes and automatically switch to the master node as soon as a
a write operation is executed. This is the basic configuration needed work with replication:
```php
// Parameters require one master node specifically marked with `alias=master`.
$parameters = ['tcp://10.0.0.1?alias=master', 'tcp://10.0.0.2?alias=slave-01'];
$options = ['replication' => true];