DefaultCacheFactory
class DefaultCacheFactory implements CacheFactory (View source)
Returns the most performant combination of caches available on the system:
PhpFilesCache
(PHP 7 with opcache enabled)ApcuCache
(requires APC) with aFilesystemCache
fallback (for larger cache volumes)FilesystemCache
if none of the above is available
Modelled after Symfony\Component\Cache\Adapter\AbstractAdapter::createSystemCache()
Properties
protected | string | $args | ||
protected | LoggerInterface | $logger |
Methods
Details
__construct(array $args = [], LoggerInterface $logger = null)
No description
object
create(string $service, array $args = [])
No description
protected bool
isAPCUSupported()
Determine if apcu is supported
protected bool
isPHPFilesSupported()
Determine if PHP files is supported
protected CacheInterface
createCache(string $class, array $args)
No description