CachePolicy
in package
FinalYes
Time-to-live in seconds for each Freshness. Zero or less means don't cache.
Table of Contents
Properties
Methods
- __construct() : mixed
- ttl() : float
Properties
$live read-only
public
float
$live
= 0
$medium read-only
public
float
$medium
= 3600
$slow read-only
public
float
$slow
= 24 * 3600
$static read-only
public
float
$static
= 7 * 24 * 3600
Methods
__construct()
public
__construct([float $static = 7 * 24 * 3600 ][, float $slow = 24 * 3600 ][, float $medium = 3600 ][, float $live = 0 ]) : mixed
Parameters
- $static : float = 7 * 24 * 3600
- $slow : float = 24 * 3600
- $medium : float = 3600
- $live : float = 0
ttl()
public
ttl(Freshness $freshness) : float
Parameters
- $freshness : Freshness