PHP Класс Neos\Cache\Frontend\AbstractFrontend

Наследование: implements Neos\Cache\Frontend\FrontendInterface
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$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