Преглед на файлове

Examples: updated PubSubContext.php

Daniele Alessandri преди 15 години
родител
ревизия
f60208eb54
променени са 1 файла, в които са добавени 4 реда и са изтрити 1 реда
  1. 4 1
      examples/PubSubContext.php

+ 4 - 1
examples/PubSubContext.php

@@ -1,8 +1,11 @@
 <?php
 require_once '../lib/Predis.php';
 
+// Redis 2.0 features new commands that allow clients to subscribe for 
+// events published on certain channels (PUBSUB).
+
 // Create a client and disable r/w timeout on the socket
-$redis  = new \Predis\Client('redis://127.0.0.1:6379/?read_write_timeout=-1', 'dev');
+$redis  = new Predis\Client('redis://127.0.0.1:6379/?read_write_timeout=-1', 'dev');
 
 // Initialize a new pubsub context
 $pubsub = $redis->pubSubContext();