/** * Retrieve cache frontend identifier, associated with a cache type * * @param string $cacheType * @return string */ protected function _getCacheFrontendId($cacheType) { $result = $this->_arguments->getCacheTypeFrontendId($cacheType); if (!$result) { if (isset($this->_typeFrontendMap[$cacheType])) { $result = $this->_typeFrontendMap[$cacheType]; } else { $result = \Magento\Framework\App\Cache\Frontend\Pool::DEFAULT_FRONTEND_ID; } } return $result; }
/** * Retrieve identifier of a cache frontend, configured to be used for a cache type * * @param string $cacheType Cache type identifier * @return string|null */ public function getCacheTypeFrontendId($cacheType) { return $this->subject->getCacheTypeFrontendId($cacheType); }