LOADING STUFF...

PHP APC函数:apc_delete()的用法

未分类1天前发布 北陌
24 0 0

PHP APC函数:apc_delete()的用法

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() – 从缓存中取出存储的变量

© 版权声明

相关文章

暂无评论

暂无评论...