CacheFactory
class CacheFactory (View source)
A factory for the PSR-6 compatible cache pool.
Traits
Abstracts the task of creating a BackendInterface implementation with it's options.
Properties
protected EnvironmentConfiguration | $environmentConfiguration |
Methods
instantiateBackend(string $backendObjectName, array $backendOptions, EnvironmentConfiguration $environmentConfiguration)
No description
CacheItemPoolInterface
create(string $cacheIdentifier, string $backendObjectName, array $backendOptions = [])
Factory method which creates the specified cache along with the specified kind of backend.
CacheItemPoolInterface
Details
protected BackendInterface
instantiateBackend(string $backendObjectName, array $backendOptions, EnvironmentConfiguration $environmentConfiguration)
No description
__construct(EnvironmentConfiguration $environmentConfiguration)
Constructs this cache factory
CacheItemPoolInterface
create(string $cacheIdentifier, string $backendObjectName, array $backendOptions = [])
Factory method which creates the specified cache along with the specified kind of backend.
The identifier uniquely identifiers the specific cache, so that entries inside are unique.
protected CacheItemPoolInterface
instantiateCache(string $cacheIdentifier, BackendInterface $backend)
No description