src/Core/Cache/CacheAdapterFactory.php
protected function getDefaultCache()
    {
        if (extension_loaded('apcu')) {
            return new ApcuCachePool();
        }

        if (class_exists('\Cache\Adapter\Filesystem\FilesystemCachePool')) {
            $filesystemAdapter = new Local($this->cacheDir);
            $filesystem        = new Filesystem($filesystemAdapter);
            return new FilesystemCachePool($filesystem);
        }

        return null;
    }
protected function getDefaultCache()
    {
        if (extension_loaded('apcu')) {
            return new ApcuCachePool();
        }

        if (class_exists('\Cache\Adapter\Filesystem\FilesystemCachePool')) {
            $filesystemAdapter = new Local($this->cacheDir);
            $filesystem        = new Filesystem($filesystemAdapter);
            return new FilesystemCachePool($filesystem);
        }

        return null;
    }
protected function getDefaultCache ( ) { if ( extension_loaded ( 'apcu' ) ) { return new ApcuCachePool ( ) ; } if ( class_exists ( '\Cache\Adapter\Filesystem\FilesystemCachePool' ) ) { $ filesystemAdapter = new Local ( $ this -> cacheDir ) ; $ filesystem = new Filesystem ( $ filesystemAdapter ) ; return new FilesystemCachePool ( $ filesystem ) ; } return null ; }
creates a default cache adapter if no cache has been provided

@return CacheItemPoolInterface|null
creates a default cache adapter if no cache has been provided