public function popJob()
    {
        // Assume storing JSON string data in queue
        // Using LPOP or RPOP depends on your producer push
        $taskJSON = $this->redisClient->lpop(self::QUEUE_KEY);

        return json_decode($taskJSON, true);
    }
public function popJob()
    {
        // Assume storing JSON string data in queue
        // Using LPOP or RPOP depends on your producer push
        $taskJSON = $this->redisClient->lpop(self::QUEUE_KEY);

        return json_decode($taskJSON, true);
    }
public function popJob ( ) { // Assume storing JSON string data in queue // Using LPOP or RPOP depends on your producer push $ taskJSON = $ this -> redisClient -> lpop ( self :: QUEUE_KEY ) ; return json_decode ( $ taskJSON , true ) ; }
Pop up a job from Redis queue

@return array
Pop up a job from Redis queue