PHP Class Sulu\Component\Cache\Memoize

Inheritance: implements Sulu\Component\Cache\MemoizeInterface
Afficher le fichier Open project: sulu/sulu

Protected Properties

Свойство Type Description
$cache Doctrine\Common\Cache\Cache
$defaultLifeTime integer

Méthodes publiques

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

Method Details

__construct() public méthode

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

memoize() public méthode

public memoize ( $compute, $lifeTime = null )

memoizeById() public méthode

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

Property Details

$cache protected_oe property

protected Cache,Doctrine\Common\Cache $cache
Résultat Doctrine\Common\Cache\Cache

$defaultLifeTime protected_oe property

protected int $defaultLifeTime
Résultat integer