source/Redis/Connection.php
public function publish($channel, $message) {
        try {
            return $this->getRedis()->publish($channel, $message);
        } catch (RedisException $ex) {
            throw new ConnectException();
        }
    }
public function publish($channel, $message) {
        try {
            return $this->getRedis()->publish($channel, $message);
        } catch (RedisException $ex) {
            throw new ConnectException();
        }
    }
public function publish ( $ channel , $ message ) { try { return $ this -> getRedis ( ) -> publish ( $ channel , $ message ) ; } catch ( RedisException $ ex ) { throw new ConnectException ( ) ; } }
Publish message to channel
@param string $channel channel name
@param string $message message
@return int the number of clients that received the message
Publish message to channel