PHP Class Sulu\Component\HttpCache\CacheLifetimeResolver

Inheritance: implements Sulu\Component\HttpCache\CacheLifetimeResolverInterface
Show file Open project: sulu/sulu

Protected Properties

Property Type Description
$cacheLifetimes array Cached cache lifetimes.
$types array Cache lifetime types.

Public Methods

Method Description
resolve ( $type, $value )
supports ( $type, $value )

Protected Methods

Method Description
getCacheLifetimeForExpression ( string $expression ) : integer

Method Details

getCacheLifetimeForExpression() protected method

protected getCacheLifetimeForExpression ( string $expression ) : integer
$expression string Cron expression
return integer Cache lifetime in seconds

resolve() public method

public resolve ( $type, $value )

supports() public method

public supports ( $type, $value )

Property Details

$cacheLifetimes protected property

Cached cache lifetimes.
protected array $cacheLifetimes
return array

$types protected static property

Cache lifetime types.
protected static array $types
return array