mirror of
https://github.com/predis/predis.git
synced 2026-10-16 08:46:28 +00:00
Deprecate Client::pubSub() in favor of Client::pubSubLoop().
Client::pubSub() still works like usual by returning a new pub/sub context, but it is now considered an alias of Client::pubSubLoop(). This change is necessary in preparation for the next major version of Predis where Client::pubSub() will be used for the new PUBSUB command introduced in Redis 2.8.
This commit is contained in:
@@ -18,7 +18,7 @@ require 'SharedConfigurations.php';
|
||||
$client = new Predis\Client($single_server + array('read_write_timeout' => 0));
|
||||
|
||||
// Initialize a new pubsub context
|
||||
$pubsub = $client->pubSub();
|
||||
$pubsub = $client->pubSubLoop();
|
||||
|
||||
// Subscribe to your channels
|
||||
$pubsub->subscribe('control_channel', 'notifications');
|
||||
|
||||
Reference in New Issue
Block a user