一、臨時(shí)緩存
后臺(tái)更新緩存之后將被刪除掉
存儲(chǔ)方法
$this->set_cache_data("緩存名稱(chēng)", $data, 有效期秒);
讀取方法
$this->get_cache_data("緩存名稱(chēng)");
二、固定緩存
后臺(tái)更新緩存后不會(huì)被刪除,需要程序手動(dòng)刪除
存儲(chǔ)方法
$this->dcache->set(緩存名稱(chēng)", $data);
讀取方法
$this->get_cache("緩存名稱(chēng)");
刪除方法
$this->dcache->delete(緩存名稱(chēng)");
以上$this表示控制器文件使用
文檔最后更新時(shí)間:2018-09-06 07:05:50