Magento 1.x code
Mage::app()->getCacheInstance()->load($cacheKey);
Magento 2 code
/**
* @param string $key
* @return string|false
*/
function df_cache_load($key) {
/** @var \Magento\Framework\ObjectManagerInterface $om */
$om = \Magento\Framework\App\ObjectManager::getInstance();
/** @var \Magento\Framework\App\CacheInterface $cache */
$cache = $om->get('Magento\Framework\App\CacheInterface');
return $cache->load($key);
}