PHP Class Neos\Flow\Cache\CacheFactory

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

Protected Properties

Свойство 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

Méthodes publiques

Méthode 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 )

Méthodes protégées

Méthode 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 méthode

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 méthode

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
Résultat Frontend\FrontendInterface

injectCacheManager() public méthode

public injectCacheManager ( CacheManager $cacheManager )
$cacheManager CacheManager

injectEnvironmentConfiguration() public méthode

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

instantiateBackend() protected méthode

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

instantiateCache() protected méthode

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

instantiateFlowSpecificBackend() protected méthode

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

Property Details

$cacheManager protected_oe property

A reference to the cache manager
protected CacheManager,Neos\Flow\Cache $cacheManager
Résultat CacheManager

$context protected_oe property

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

$environment protected_oe property

protected Environment,Neos\Flow\Utility $environment
Résultat Neos\Flow\Utility\Environment

$environmentConfiguration protected_oe property

protected EnvironmentConfiguration,Neos\Cache $environmentConfiguration
Résultat Neos\Cache\EnvironmentConfiguration