PHP Class Neos\Flow\Cache\CacheFactory

Inheritance: extends Neos\Cache\CacheFactory, implements Neos\Cache\CacheFactoryInterface
Exibir arquivo Open project: neos/flow-development-collection Class Usage Examples

Protected Properties

Property Type Description
$cacheManager CacheManager A reference to the cache manager
$context Neos\Flow\Core\ApplicationContext The current Flow context ("Production", "Development" etc.)
$environment Neos\Flow\Utility\Environment
$environmentConfiguration Neos\Cache\EnvironmentConfiguration

Public Methods

Method Description
__construct ( ApplicationContext $context, Environment $environment ) Constructs this cache factory
create ( string $cacheIdentifier, string $cacheObjectName, string $backendObjectName, array $backendOptions = [], boolean $persistent = false ) : Frontend\FrontendInterface
injectCacheManager ( CacheManager $cacheManager )
injectEnvironmentConfiguration ( EnvironmentConfiguration $environmentConfiguration )

Protected Methods

Method Description
instantiateBackend ( string $backendObjectName, array $backendOptions, boolean $persistent = false ) : AbstractBackend | Backend\BackendInterface
instantiateCache ( $cacheIdentifier, $cacheObjectName, $backend )
instantiateFlowSpecificBackend ( string $backendObjectName, array $backendOptions ) : AbstractBackend

Method Details

__construct() public method

Constructs this cache factory
public __construct ( ApplicationContext $context, Environment $environment )
$context Neos\Flow\Core\ApplicationContext The current Flow context
$environment Neos\Flow\Utility\Environment

create() public method

public create ( string $cacheIdentifier, string $cacheObjectName, string $backendObjectName, array $backendOptions = [], boolean $persistent = false ) : Frontend\FrontendInterface
$cacheIdentifier string
$cacheObjectName string
$backendObjectName string
$backendOptions array
$persistent boolean
return Frontend\FrontendInterface

injectCacheManager() public method

public injectCacheManager ( CacheManager $cacheManager )
$cacheManager CacheManager

injectEnvironmentConfiguration() public method

public injectEnvironmentConfiguration ( EnvironmentConfiguration $environmentConfiguration )
$environmentConfiguration Neos\Cache\EnvironmentConfiguration

instantiateBackend() protected method

protected instantiateBackend ( string $backendObjectName, array $backendOptions, boolean $persistent = false ) : AbstractBackend | Backend\BackendInterface
$backendObjectName string
$backendOptions array
$persistent boolean
return Neos\Flow\Cache\Backend\AbstractBackend | Backend\BackendInterface

instantiateCache() protected method

protected instantiateCache ( $cacheIdentifier, $cacheObjectName, $backend )

instantiateFlowSpecificBackend() protected method

protected instantiateFlowSpecificBackend ( string $backendObjectName, array $backendOptions ) : AbstractBackend
$backendObjectName string
$backendOptions array
return Neos\Flow\Cache\Backend\AbstractBackend

Property Details

$cacheManager protected_oe property

A reference to the cache manager
protected CacheManager,Neos\Flow\Cache $cacheManager
return CacheManager

$context protected_oe property

The current Flow context ("Production", "Development" etc.)
protected ApplicationContext,Neos\Flow\Core $context
return Neos\Flow\Core\ApplicationContext

$environment protected_oe property

protected Environment,Neos\Flow\Utility $environment
return Neos\Flow\Utility\Environment

$environmentConfiguration protected_oe property

protected EnvironmentConfiguration,Neos\Cache $environmentConfiguration
return Neos\Cache\EnvironmentConfiguration