PHP Class Metaphore\Ttl

Datei anzeigen Open project: sobstel/metaphore Class Usage Examples

Protected Properties

Property Type Description
$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

Public Methods

Method Description
__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

Method Details

__construct() public method

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

__toString() public method

public __toString ( )

getGraceTtl() public method

Gets grace period
public getGraceTtl ( ) : integer
return integer

getLockTtl() public method

public getLockTtl ( ) : integer
return integer

getRealTtl() public method

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

getTtl() public method

public getTtl ( ) : integer
return integer

Property Details

$graceTtl protected_oe property

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

$lockTtl protected_oe property

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

$ttl protected_oe property

* @var int
protected $ttl