Example #1
0
 /**
  * Subscribe to a set of given channels for messages.
  *
  * @param array|string $channels
  * @param \Closure $callback
  * @param string $connection
  * @param string $method
  * @return void 
  * @static 
  */
 public static function subscribe($channels, $callback, $connection = null, $method = 'subscribe')
 {
     \Illuminate\Redis\Database::subscribe($channels, $callback, $connection, $method);
 }
Example #2
0
 /**
  * Subscribe to a set of given channels for messages.
  *
  * @param array|string $channels
  * @param \Closure $callback
  * @param string $connection
  * @return void 
  * @static 
  */
 public static function subscribe($channels, $callback, $connection = null)
 {
     \Illuminate\Redis\Database::subscribe($channels, $callback, $connection);
 }