PHP 클래스 Neos\Cache\Frontend\PhpFrontend

상속: extends StringFrontend
파일 보기 프로젝트 열기: neos/flow-development-collection 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( string $identifier, Neos\Cache\Backend\PhpCapableBackendInterface $backend ) Constructs the cache
get ( string $entryIdentifier ) : string Finds and returns the original code from the cache.
getWrapped ( string $entryIdentifier ) : string Returns the code wrapped in php tags as written to the cache, ready to be included.
requireOnce ( string $entryIdentifier ) : mixed Loads PHP code from the cache and require_onces it right away.
set ( string $entryIdentifier, string $sourceCode, array $tags = [], integer $lifetime = null ) : void Saves the PHP source code in the cache.

메소드 상세

__construct() 공개 메소드

Constructs the cache
public __construct ( string $identifier, Neos\Cache\Backend\PhpCapableBackendInterface $backend )
$identifier string A identifier which describes this cache
$backend Neos\Cache\Backend\PhpCapableBackendInterface Backend to be used for this cache

get() 공개 메소드

Finds and returns the original code from the cache.
public get ( string $entryIdentifier ) : string
$entryIdentifier string Identifier of the cache entry to fetch
리턴 string The value

getWrapped() 공개 메소드

Returns the code wrapped in php tags as written to the cache, ready to be included.
public getWrapped ( string $entryIdentifier ) : string
$entryIdentifier string
리턴 string

requireOnce() 공개 메소드

Loads PHP code from the cache and require_onces it right away.
public requireOnce ( string $entryIdentifier ) : mixed
$entryIdentifier string An identifier which describes the cache entry to load
리턴 mixed Potential return value from the include operation

set() 공개 메소드

Saves the PHP source code in the cache.
public set ( string $entryIdentifier, string $sourceCode, array $tags = [], integer $lifetime = null ) : void
$entryIdentifier string An identifier used for this cache entry, for example the class name
$sourceCode string PHP source code
$tags array Tags to associate with this cache entry
$lifetime integer Lifetime of this cache entry in seconds. If NULL is specified, the default lifetime is used. "0" means unlimited lifetime.
리턴 void