apcu_delete

(PECL apcu >= 4.0.0)
Removes a stored variable from the cache
mixed apcu_delete ( string $key )

Removes a stored variable from the cache.

Parameters:
key

The key used to store the value (with apcu_store()).

Returns:

Returns TRUE on success or FALSE on failure.

Examples:
A apcu_delete() example
<?php
$bar = 'BAR';
apcu_store('foo', $bar);
apcu_delete('foo');
// this is obviously useless in this form
?>

See also:

apcu_store() -

apcu_fetch() -

doc_php
2016-02-24 15:53:41
Comments
Leave a Comment

Please login to continue.