使用助手函数删除缓存数据问题

浏览:426 发布日期:2019/03/28 分类:求助交流 关键字: thinkphp5 cache 缓存
各位:

小白有一个关于使用TP5 助手函数删除缓存数据问题需要请教一下。

我发现使用使用助手函数删除缓存数据 如:db('user')-cache('user',3600)->select(); 生成缓存数据后 使用 cache('user', NULL);再 dump(cache('user));
结果返回为true 即不是false 也不是 空 ; 而我使用Cache:rm('user), 再 dump(cache('user));结果返回为false.

我的问题是cache('user', NULL) 为什么不等于 Cache:rm('user) 或是 让缓存user值为空 ?
使用助手函数删除缓存数据问题cache('user', NULL),到底是什么意思?

谢谢
最佳答案
评论( 相关
后面还有条评论,点击查看>>