PHP 클래스 Metaphore\Ttl

파일 보기 프로젝트 열기: sobstel/metaphore 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$graceTtl * @var int How long to serve stale content while new one is being generated
$lockTtl * @var int How long to prevent other requests to start generating same content
$ttl * @var int

공개 메소드들

메소드 설명
__construct ( $ttl, $graceTtl = null, $lockTtl = null )
__toString ( )
getGraceTtl ( ) : integer Gets grace period
getLockTtl ( ) : integer
getRealTtl ( ) : integer Get time how log it's really cached in cache store.
getTtl ( ) : integer

메소드 상세

__construct() 공개 메소드

public __construct ( $ttl, $graceTtl = null, $lockTtl = null )

__toString() 공개 메소드

public __toString ( )

getGraceTtl() 공개 메소드

Gets grace period
public getGraceTtl ( ) : integer
리턴 integer

getLockTtl() 공개 메소드

public getLockTtl ( ) : integer
리턴 integer

getRealTtl() 공개 메소드

Get time how log it's really cached in cache store.
public getRealTtl ( ) : integer
리턴 integer

getTtl() 공개 메소드

public getTtl ( ) : integer
리턴 integer

프로퍼티 상세

$graceTtl 보호되어 있는 프로퍼티

* @var int How long to serve stale content while new one is being generated
protected $graceTtl

$lockTtl 보호되어 있는 프로퍼티

* @var int How long to prevent other requests to start generating same content
protected $lockTtl

$ttl 보호되어 있는 프로퍼티

* @var int
protected $ttl