PHP 인터페이스 Stiphle\Throttle\ThrottleInterface

저자: Dave Marshall ([email protected])
파일 보기 프로젝트 열기: davedevelopment/stiphle

공개 메소드들

메소드 설명
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