企业🤖AI Agent构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
ThinkCMF使用助手函数 `cache`进行缓存的操作 ## 设置缓存数据 ``` cache('cmf_settings', $value); ``` ## 获取缓存数据 ``` print_r(cache('cmf_settings')); ``` ## 删除缓存数据 ``` cache('cmf_settings', NULL); ``` ## 设置缓存有效期 第三个参数为 int 代表缓存过期时间 ``` cache('cmf_settings', $value,3600); ```