private function getFirstElementFromQueue($key) :? string
    {
        $result = $this->getClient()->getRedis()->zrevrange($key, 0, 0);
        if (empty($result)) {
            return null;
        }

        return $result[0];
    }