CacheFactory
class CacheFactory extends CacheFactory (View source)
This cache factory takes care of instantiating a cache frontend and injecting a certain cache backend. In a Flow context you should use the CacheManager to get a Cache.
Traits
Abstracts the task of creating a BackendInterface implementation with it's options.
Properties
protected EnvironmentConfiguration | $environmentConfiguration | ||
protected ApplicationContext | $context | The current Flow context ("Production", "Development" etc.) |
|
protected Environment | $environment |
Methods
instantiateBackend(string $backendObjectName, array $backendOptions, EnvironmentConfiguration $environmentConfiguration, bool $persistent = false)
No description
__construct(ApplicationContext $context, Environment $environment, string $applicationIdentifier)
Constructs this cache factory
create(string $cacheIdentifier, string $cacheObjectName, string $backendObjectName, array $backendOptions = [], bool $persistent = false)
No description
instantiateCache(string $cacheIdentifier, string $cacheObjectName, BackendInterface $backend)
No description
void
Details
protected BackendInterface
instantiateBackend(string $backendObjectName, array $backendOptions, EnvironmentConfiguration $environmentConfiguration, bool $persistent = false)
No description
__construct(ApplicationContext $context, Environment $environment, string $applicationIdentifier)
Constructs this cache factory
FrontendInterface
create(string $cacheIdentifier, string $cacheObjectName, string $backendObjectName, array $backendOptions = [], bool $persistent = false)
No description
protected FrontendInterface
instantiateCache(string $cacheIdentifier, string $cacheObjectName, BackendInterface $backend)
No description
void
injectEnvironmentConfiguration(EnvironmentConfiguration $environmentConfiguration)
No description