saveAllowance() public abstract method
Saves the number of allowed requests and the corresponding timestamp to a persistent storage.
| public abstract void saveAllowance ( $request, $action, $allowance, $timestamp ) | ||
|---|---|---|
| $request | yii\web\Request |
The current request |
| $action | yii\base\Action |
The action to be executed |
| $allowance | integer |
The number of allowed requests remaining. |
| $timestamp | integer |
The current timestamp. |
Please login to continue.