PHP 클래스 Neos\Cache\Frontend\StringFrontend

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

공개 메소드들

메소드 설명
get ( string $entryIdentifier ) : string Finds and returns a variable value from the cache.
getByTag ( string $tag ) : array Finds and returns all cache entries which are tagged by the specified tag.
set ( string $entryIdentifier, string $string, array $tags = [], integer $lifetime = null ) : void Saves the value of a PHP variable in the cache.

메소드 상세

get() 공개 메소드

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

getByTag() 공개 메소드

Finds and returns all cache entries which are tagged by the specified tag.
public getByTag ( string $tag ) : array
$tag string The tag to search for
리턴 array An array with the identifier (key) and content (value) of all matching entries. An empty array if no entries matched

set() 공개 메소드

Saves the value of a PHP variable in the cache.
public set ( string $entryIdentifier, string $string, array $tags = [], integer $lifetime = null ) : void
$entryIdentifier string An identifier used for this cache entry
$string string The variable to cache
$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