PHP Class Sulu\Component\Cache\Memoize

Inheritance: implements Sulu\Component\Cache\MemoizeInterface
Datei anzeigen Open project: sulu/sulu

Protected Properties

Property Type Description
$cache Doctrine\Common\Cache\Cache
$defaultLifeTime integer

Public Methods

Method Description
__construct ( Doctrine\Common\Cache\Cache $cache, $defaultLifeTime ) Constructor.
memoize ( $compute, $lifeTime = null )
memoizeById ( $id, $arguments, $compute, $lifeTime = null )

Method Details

__construct() public method

Constructor.
public __construct ( Doctrine\Common\Cache\Cache $cache, $defaultLifeTime )
$cache Doctrine\Common\Cache\Cache

memoize() public method

public memoize ( $compute, $lifeTime = null )

memoizeById() public method

public memoizeById ( $id, $arguments, $compute, $lifeTime = null )

Property Details

$cache protected_oe property

protected Cache,Doctrine\Common\Cache $cache
return Doctrine\Common\Cache\Cache

$defaultLifeTime protected_oe property

protected int $defaultLifeTime
return integer