PHP 클래스 Sulu\Component\Cache\Memoize

상속: implements Sulu\Component\Cache\MemoizeInterface
파일 보기 프로젝트 열기: sulu/sulu

보호된 프로퍼티들

프로퍼티 타입 설명
$cache Doctrine\Common\Cache\Cache
$defaultLifeTime integer

공개 메소드들

메소드 설명
__construct ( Doctrine\Common\Cache\Cache $cache, $defaultLifeTime ) Constructor.
memoize ( $compute, $lifeTime = null )
memoizeById ( $id, $arguments, $compute, $lifeTime = null )

메소드 상세

__construct() 공개 메소드

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

memoize() 공개 메소드

public memoize ( $compute, $lifeTime = null )

memoizeById() 공개 메소드

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

프로퍼티 상세

$cache 보호되어 있는 프로퍼티

protected Cache,Doctrine\Common\Cache $cache
리턴 Doctrine\Common\Cache\Cache

$defaultLifeTime 보호되어 있는 프로퍼티

protected int $defaultLifeTime
리턴 integer