SimpleCacheFactory
class SimpleCacheFactory (View source)
A factory for PSR-16 simple caches.
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
CacheInterface
create(string $cacheIdentifier, string $backendObjectName, array $backendOptions = [])
Factory method which creates the specified cache along with the specified kind of backend.
CacheInterface
Details
protected BackendInterface
instantiateBackend(string $backendObjectName, array $backendOptions, EnvironmentConfiguration $environmentConfiguration)
No description
__construct(EnvironmentConfiguration $environmentConfiguration)
Constructs this cache factory
CacheInterface
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 CacheInterface
instantiateCache(string $cacheIdentifier, BackendInterface $backend)
No description