apcu_delete
(PECL apcu >= 4.0.0)
apcu_delete — Removes a stored variable from the cache
Возвращаемые значения
Возвращает TRUE
в случае успешного завершения или FALSE
в случае возникновения ошибки.
Примеры
Пример #1 A apcu_delete() example
<?php
$bar = 'BAR';
apcu_store('foo', $bar);
apcu_delete('foo');
// this is obviously useless in this form
?>
Смотрите также
- apcu_store() - Cache a variable in the data store
- apcu_fetch() - Fetch a stored variable from the cache
Коментарии
Calling apcu_delete() on an unexisting cached variable name doesn't generate a NOTICE (nor WARNING), making it safe to use if unsure of the state of that variable.