protected function getInitializedCache()
    {
        $cacheIdentifier = 'tx_solr';
        try {
            $cacheInstance = GeneralUtility::makeInstance(CacheManager::class)->getCache($cacheIdentifier);
        } catch (NoSuchCacheException $e) {
            /** @var t3lib_cache_Factory $typo3CacheFactory */
            $typo3CacheFactory = $GLOBALS['typo3CacheFactory'];
            $cacheInstance = $typo3CacheFactory->create($cacheIdentifier, $GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations'][$cacheIdentifier]['frontend'], $GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations'][$cacheIdentifier]['backend'], $GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations'][$cacheIdentifier]['options']);
        }

        return $cacheInstance;
    }
protected function getInitializedCache()
    {
        $cacheIdentifier = 'tx_solr';
        try {
            $cacheInstance = GeneralUtility::makeInstance(CacheManager::class)->getCache($cacheIdentifier);
        } catch (NoSuchCacheException $e) {
            /** @var t3lib_cache_Factory $typo3CacheFactory */
            $typo3CacheFactory = $GLOBALS['typo3CacheFactory'];
            $cacheInstance = $typo3CacheFactory->create($cacheIdentifier, $GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations'][$cacheIdentifier]['frontend'], $GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations'][$cacheIdentifier]['backend'], $GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations'][$cacheIdentifier]['options']);
        }

        return $cacheInstance;
    }
protected function getInitializedCache ( ) { $ cacheIdentifier = 'tx_solr' ; try { $ cacheInstance = GeneralUtility :: makeInstance ( CacheManager :: class ) -> getCache ( $ cacheIdentifier ) ; } catch ( NoSuchCacheException $ e ) { /** @var t3lib_cache_Factory $typo3CacheFactory */ $ typo3CacheFactory = $ GLOBALS [ 'typo3CacheFactory' ] ; $ cacheInstance = $ typo3CacheFactory -> create ( $ cacheIdentifier , $ GLOBALS [ 'TYPO3_CONF_VARS' ] [ 'SYS' ] [ 'caching' ] [ 'cacheConfigurations' ] [ $ cacheIdentifier ] [ 'frontend' ] , $ GLOBALS [ 'TYPO3_CONF_VARS' ] [ 'SYS' ] [ 'caching' ] [ 'cacheConfigurations' ] [ $ cacheIdentifier ] [ 'backend' ] , $ GLOBALS [ 'TYPO3_CONF_VARS' ] [ 'SYS' ] [ 'caching' ] [ 'cacheConfigurations' ] [ $ cacheIdentifier ] [ 'options' ] ) ; } return $ cacheInstance ; }
Initializes the cache for this command.

@return \TYPO3\CMS\Core\Cache\AbstractFrontend
Initializes the cache for this command .