ManaPHP\Message\Queue\Adapter\Redis::push PHP Method

push() public method

public push ( string $topic, string $body, integer $priority = self::PRIORITY_NORMAL )
$topic string
$body string
$priority integer
    public function push($topic, $body, $priority = self::PRIORITY_NORMAL)
    {
        if (!in_array($priority, $this->_priorities, true)) {
            throw new RedisException('`:priority` priority of `:topic is invalid`', ['priority' => $priority, 'topic' => $topic]);
        }
        $this->redis->lPush($this->_prefix . $topic . ':' . $priority, $body);
    }