PHP 클래스 Neos\Cache\Frontend\AbstractFrontend

상속: implements Neos\Cache\Frontend\FrontendInterface
파일 보기 프로젝트 열기: neos/flow-development-collection

보호된 프로퍼티들

프로퍼티 타입 설명
$backend Neos\Cache\Backend\AbstractBackend
$identifier string Identifies this cache

공개 메소드들

메소드 설명
__construct ( string $identifier, Neos\Cache\Backend\BackendInterface $backend ) Constructs the cache
collectGarbage ( ) : void Does garbage collection
flush ( ) : void Removes all cache entries of this cache.
flushByTag ( string $tag ) : integer Removes all cache entries of this cache which are tagged by the specified tag.
getBackend ( ) : Neos\Cache\Backend\BackendInterface Returns the backend used by this cache
getIdentifier ( ) : string Returns this cache's identifier
has ( string $entryIdentifier ) : boolean Checks if a cache entry with the specified identifier exists.
initializeObject ( ) : void Initializes this frontend
isValidEntryIdentifier ( string $identifier ) : boolean Checks the validity of an entry identifier. Returns true if it's valid.
isValidTag ( string $tag ) : boolean Checks the validity of a tag. Returns true if it's valid.
remove ( string $entryIdentifier ) : boolean Removes the given cache entry from the cache.

메소드 상세

__construct() 공개 메소드

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

collectGarbage() 공개 메소드

Does garbage collection
public collectGarbage ( ) : void
리턴 void

flush() 공개 메소드

Removes all cache entries of this cache.
public flush ( ) : void
리턴 void

flushByTag() 공개 메소드

Removes all cache entries of this cache which are tagged by the specified tag.
public flushByTag ( string $tag ) : integer
$tag string The tag the entries must have
리턴 integer The number of entries which have been affected by this flush or NULL if the number is unknown

getBackend() 공개 메소드

Returns the backend used by this cache
public getBackend ( ) : Neos\Cache\Backend\BackendInterface
리턴 Neos\Cache\Backend\BackendInterface The backend used by this cache

getIdentifier() 공개 메소드

Returns this cache's identifier
public getIdentifier ( ) : string
리턴 string The identifier for this cache

has() 공개 메소드

Checks if a cache entry with the specified identifier exists.
public has ( string $entryIdentifier ) : boolean
$entryIdentifier string An identifier specifying the cache entry
리턴 boolean TRUE if such an entry exists, FALSE if not

initializeObject() 공개 메소드

The backend is connected with this frontend in initializeObject(), not in __construct(), because the Cache Factory needs an opportunity to register the cache before the backend's setCache() method is called. See CacheFactory::create() for details. A backend (for example the SimpleFileBackend) may rely on the cache already being registered at the CacheManager when its setCache() method is called.
public initializeObject ( ) : void
리턴 void

isValidEntryIdentifier() 공개 메소드

Checks the validity of an entry identifier. Returns true if it's valid.
public isValidEntryIdentifier ( string $identifier ) : boolean
$identifier string An identifier to be checked for validity
리턴 boolean

isValidTag() 공개 메소드

Checks the validity of a tag. Returns true if it's valid.
public isValidTag ( string $tag ) : boolean
$tag string An identifier to be checked for validity
리턴 boolean

remove() 공개 메소드

Removes the given cache entry from the cache.
public remove ( string $entryIdentifier ) : boolean
$entryIdentifier string An identifier specifying the cache entry
리턴 boolean TRUE if such an entry exists, FALSE if not

프로퍼티 상세

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

protected AbstractBackend,Neos\Cache\Backend $backend
리턴 Neos\Cache\Backend\AbstractBackend

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

Identifies this cache
protected string $identifier
리턴 string