N98\Magento\Command\Cache\AbstractCacheCommand::_getCacheModel PHP Method

_getCacheModel() protected method

protected _getCacheModel ( ) : Mage_Core_Model_Cach\Mage_Core_Model_Cache
return Mage_Core_Model_Cach\Mage_Core_Model_Cache
    protected function _getCacheModel()
    {
        if ($this->_magentoMajorVersion == AbstractMagentoCommand::MAGENTO_MAJOR_VERSION_2) {
            throw new RuntimeException('There global Mage class was removed from Magento 2. What should we do here?');
        } else {
            return \Mage::app()->getCacheInstance();
        }
    }