Update README.

This commit is contained in:
Daniele Alessandri
2011-01-01 17:14:08 +01:00
parent 12c3e611a0
commit c75bdd9509
+2 -2
View File
@@ -61,10 +61,10 @@ Furthermore, a pipeline can be initialized on a cluster of redis instances in th
same exact way they are created on single connection. Sharding is still transparent
to the user:
$redis = Predis\Client::create(
$redis = new Predis\Client(array(
array('host' => '10.0.0.1', 'port' => 6379),
array('host' => '10.0.0.2', 'port' => 6379)
);
));
$replies = $redis->pipeline(function($pipe) {
for ($i = 0; $i < 1000; $i++) {