class DefaultCacheFactory implements CacheFactory

Returns the most performant combination of caches available on the system: - PhpFilesCache (PHP 7 with opcache enabled) - ApcuCache (requires APC) with a FilesystemCache fallback (for larger cache volumes) - FilesystemCache if none of the above is available

Modelled after Symfony\Component\Cache\Adapter\AbstractAdapter::createSystemCache()

Methods

__construct(array $args = [], LoggerInterface $logger = null)

No description

object
create(string $service, array $args = array())

No description

Details

at line 41
__construct(array $args = [], LoggerInterface $logger = null)

Parameters

array $args List of global options to merge with args during create()
LoggerInterface $logger Logger instance to assign

at line 50
object create(string $service, array $args = array())

Parameters

string $service The class name of the service.
array $args

Return Value

object The created service instances.