apc_delete

(PECL apc >= 3.0.0)

apc_delete 锟斤拷锟矫伙拷锟斤拷锟斤拷锟斤拷删锟斤拷某锟斤拷锟斤拷锟斤拷

说锟斤拷

apc_delete ( string $key ) : mixed

锟斤拷锟斤拷锟捷存储锟斤拷删锟斤拷某锟斤拷锟斤拷锟斤拷锟斤拷

锟斤拷锟斤拷

key

key 锟斤拷锟斤拷锟斤拷锟斤拷 apc_store() 锟芥储锟斤拷锟斤拷时锟斤拷锟借定锟侥憋拷锟斤拷锟斤拷啤锟�

锟斤拷锟斤拷值

锟缴癸拷时锟斤拷锟斤拷 TRUE锟斤拷 锟斤拷锟斤拷锟斤拷失锟斤拷时锟斤拷锟斤拷 FALSE锟斤拷

锟斤拷锟斤拷

Example #1 A apc_delete() 锟斤拷锟斤拷

<?php
$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() - 锟接伙拷锟斤拷锟斤拷取锟斤拷锟芥储锟侥憋拷锟斤拷