PHP Класс Neos\Cache\CacheFactory

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

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

Свойство Тип Описание
$environmentConfiguration EnvironmentConfiguration

Открытые методы

Метод Описание
__construct ( EnvironmentConfiguration $environmentConfiguration ) Constructs this cache factory
create ( string $cacheIdentifier, string $cacheObjectName, string $backendObjectName, array $backendOptions = [] ) : Neos\Cache\Frontend\FrontendInterface Factory method which creates the specified cache along with the specified kind of backend.

Защищенные методы

Метод Описание
instantiateBackend ( string $backendObjectName, array $backendOptions ) : Neos\Cache\Backend\BackendInterface
instantiateCache ( string $cacheIdentifier, string $cacheObjectName, Neos\Cache\Backend\BackendInterface $backend ) : Neos\Cache\Frontend\FrontendInterface

Описание методов

__construct() публичный Метод

Constructs this cache factory
public __construct ( EnvironmentConfiguration $environmentConfiguration )
$environmentConfiguration EnvironmentConfiguration

create() публичный Метод

After creating the cache, it will be registered at the cache manager.
public create ( string $cacheIdentifier, string $cacheObjectName, string $backendObjectName, array $backendOptions = [] ) : Neos\Cache\Frontend\FrontendInterface
$cacheIdentifier string The name / identifier of the cache to create
$cacheObjectName string Object name of the cache frontend
$backendObjectName string Object name of the cache backend
$backendOptions array (optional) Array of backend options
Результат Neos\Cache\Frontend\FrontendInterface The created cache frontend

instantiateBackend() защищенный Метод

protected instantiateBackend ( string $backendObjectName, array $backendOptions ) : Neos\Cache\Backend\BackendInterface
$backendObjectName string
$backendOptions array
Результат Neos\Cache\Backend\BackendInterface

instantiateCache() защищенный Метод

protected instantiateCache ( string $cacheIdentifier, string $cacheObjectName, Neos\Cache\Backend\BackendInterface $backend ) : Neos\Cache\Frontend\FrontendInterface
$cacheIdentifier string
$cacheObjectName string
$backend Neos\Cache\Backend\BackendInterface
Результат Neos\Cache\Frontend\FrontendInterface

Описание свойств

$environmentConfiguration защищенное свойство

protected EnvironmentConfiguration,Neos\Cache $environmentConfiguration
Результат EnvironmentConfiguration