PHP Интерфейс Stiphle\Throttle\ThrottleInterface

Автор: Dave Marshall ([email protected])
Показать файл Открыть проект

Открытые методы

Метод Описание
getEstimate ( string $key, integer $limit, integer $milliseconds ) : integer Get Estimate
throttle ( string $key, integer $limit, integer $milliseconds ) : void Throttle

Описание методов

getEstimate() публичный Метод

If I were to throttle now, how long would I be waiting
public getEstimate ( string $key, integer $limit, integer $milliseconds ) : integer
$key string - A unique key for what we're throttling
$limit integer - How many are allowed
$milliseconds integer - In this many milliseconds
Результат integer - the number of milliseconds before this request should be allowed

throttle() публичный Метод

Throttle
public throttle ( string $key, integer $limit, integer $milliseconds ) : void
$key string - A unique key for what we're throttling
$limit integer - How many are allowed
$milliseconds integer - In this many milliseconds
Результат void