浏览代码

Update README.

Daniele Alessandri 14 年之前
父节点
当前提交
c75bdd9509
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      README.markdown

+ 2 - 2
README.markdown

@@ -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 
 same exact way they are created on single connection. Sharding is still transparent 
 to the user:
 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.1', 'port' => 6379),
         array('host' => '10.0.0.2', 'port' => 6379)
         array('host' => '10.0.0.2', 'port' => 6379)
-    );
+    ));
 
 
     $replies = $redis->pipeline(function($pipe) {
     $replies = $redis->pipeline(function($pipe) {
         for ($i = 0; $i < 1000; $i++) {
         for ($i = 0; $i < 1000; $i++) {