コード例 #1
0
ファイル: Cache.php プロジェクト: mage2pro/core
 /** @return \Magento\Framework\App\CacheInterface|\Magento\Framework\App\Cache */
 protected function cache()
 {
     return df_cache();
 }
コード例 #2
0
ファイル: cache.php プロジェクト: mage2pro/core
/**
 * 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);
}