PHP Class Metaphore\Ttl

Afficher le fichier Open project: sobstel/metaphore Class Usage Examples

Protected Properties

Свойство 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

Méthodes publiques

Méthode 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 méthode

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

__toString() public méthode

public __toString ( )

getGraceTtl() public méthode

Gets grace period
public getGraceTtl ( ) : integer
Résultat integer

getLockTtl() public méthode

public getLockTtl ( ) : integer
Résultat integer

getRealTtl() public méthode

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

getTtl() public méthode

public getTtl ( ) : integer
Résultat 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