Browse Source

Examples: updated PubSubContext.php

Daniele Alessandri 15 years ago
parent
commit
f60208eb54
1 changed files with 4 additions and 1 deletions
  1. 4 1
      examples/PubSubContext.php

+ 4 - 1
examples/PubSubContext.php

@@ -1,8 +1,11 @@
 <?php
 <?php
 require_once '../lib/Predis.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
 // 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
 // Initialize a new pubsub context
 $pubsub = $redis->pubSubContext();
 $pubsub = $redis->pubSubContext();