Memcache::delete()
Memcache::delete - Delete item from the server
Syntax
bool Memcache::delete (
string $key,
int $timeout)
Arguments
- key - The key associated with the item to delete.
- timeout - Execution time of the item. If it\'s equal to zero, the item will be deleted right away whereas if you set it to 30, the item will be deleted in 30 seconds.
Description
Memcache::delete() deletes item with the key. If parameter timeout is specified, the item will expire after timeout seconds. Also you can use memcache_delete() function.
Version
PHP PECL memcache >= 0.2.0
Return value
Returns TRUE on success or FALSE on failure.