PHP Class Neos\Cache\CacheFactory

Inheritance: implements Neos\Cache\CacheFactoryInterface
Mostrar archivo Open project: neos/flow-development-collection Class Usage Examples

Protected Properties

Property Type Description
$environmentConfiguration EnvironmentConfiguration

Public Methods

Method Description
__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.

Protected Methods

Method Description
instantiateBackend ( string $backendObjectName, array $backendOptions ) : Neos\Cache\Backend\BackendInterface
instantiateCache ( string $cacheIdentifier, string $cacheObjectName, Neos\Cache\Backend\BackendInterface $backend ) : Neos\Cache\Frontend\FrontendInterface

Method Details

__construct() public method

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

create() public method

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
return Neos\Cache\Frontend\FrontendInterface The created cache frontend

instantiateBackend() protected method

protected instantiateBackend ( string $backendObjectName, array $backendOptions ) : Neos\Cache\Backend\BackendInterface
$backendObjectName string
$backendOptions array
return Neos\Cache\Backend\BackendInterface

instantiateCache() protected method

protected instantiateCache ( string $cacheIdentifier, string $cacheObjectName, Neos\Cache\Backend\BackendInterface $backend ) : Neos\Cache\Frontend\FrontendInterface
$cacheIdentifier string
$cacheObjectName string
$backend Neos\Cache\Backend\BackendInterface
return Neos\Cache\Frontend\FrontendInterface

Property Details

$environmentConfiguration protected_oe property

protected EnvironmentConfiguration,Neos\Cache $environmentConfiguration
return EnvironmentConfiguration