src/Core/Request/Restrictor.php
private function restrictByKey($key)
    {
        if ($this->storageManager->hasItem($key)) {
            throw new RequestLimitReachedException();
        }
        $this->storageManager->setItem($key);

        return $this->storageManager->getItem($key);
    }
private function restrictByKey($key)
    {
        if ($this->storageManager->hasItem($key)) {
            throw new RequestLimitReachedException();
        }
        $this->storageManager->setItem($key);

        return $this->storageManager->getItem($key);
    }
@param $key

@return mixed
@throws RequestLimitReachedException