合规国际互联网加速 OSASE为企业客户提供高速稳定SD-WAN国际加速解决方案。 广告
ThinkCMF5 使用助手函数 `cache`进行缓存的操作 ## 设置缓存数据 ``` cache('cmf_settings', $value); ``` ## 获取缓存数据 ``` print_r(cache('cmf_settings')); ``` ## 删除缓存数据 ``` cache('cmf_settings', NULL); ``` ## 设置缓存有效期 第三个参数为 int 代表缓存过期时间 ``` cache('cmf_settings', $value,3600); ```