
apc_delete
(PECL apc >= 3.0.0)
apc_delete —
从用户缓存中删除某个变量
说明
mixed apc_delete
( string $key
)
从数据存储里删除某个变量。
参数
key
key 即是你用
apc_store() 存储数据时所设定的标记名称。
返回值
成功时返回 TRUE, 或者在失败时返回 FALSE。
范例
Example #1 A apc_delete() 范例
$bar = BAR;
apc_store(foo, $bar);
apc_delete(foo);
// this is obviously useless in this form
?>
参见
apc_store() – Cache a variable in the data store
apc_fetch() – 从缓存中取出存储的变量
© 版权声明
文章版权归作者所有,未经允许请勿转载。
相关文章
暂无评论...