Example #1
0
 /** @return \Magento\Framework\App\CacheInterface|\Magento\Framework\App\Cache */
 protected function cache()
 {
     return df_cache();
 }
Example #2
0
/**
 * 2016-07-18
 * @param mixed $data
 * @param string $key
 * @param string[] $tags [optional]
 * @param int|null $lifeTime [optional]
 * @return bool
 */
function df_cache_save($data, $key, $tags = [], $lifeTime = null)
{
    return df_cache()->save($data, $key, $tags, $lifeTime);
}