$app
$app : \think\App
缓存管理类
$app : \think\App
__construct(\think\App $app)
\think\App | $app |
has(string $key) : boolean
判断缓存是否存在
NOTE: It is recommended that has() is only to be used for cache warming type purposes and not to be used within your live applications operations for get/set, as this method is subject to a race condition where your has() will return true and immediately after, another script can remove it making the state of your app out of date.
string | $key | 缓存变量名 |
tag(string|array $name) : \think\cache\TagSet
缓存标签
string|array | $name | 标签名 |