array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'tr', ), 'this' => array ( 0 => 'memcache.delete.php', 1 => 'Memcache::delete', 2 => 'Delete item from the server', ), 'up' => array ( 0 => 'class.memcache.php', 1 => 'Memcache', ), 'prev' => array ( 0 => 'memcache.decrement.php', 1 => 'Memcache::decrement', ), 'next' => array ( 0 => 'memcache.flush.php', 1 => 'Memcache::flush', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/memcache/memcache/delete.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>
(PECL memcache >= 0.2.0)
Memcache::delete -- memcache_delete — Delete item from the server
Memcache::delete() deletes an item with the key.
keyThe key associated with the item to delete.
exptime
This deprecated parameter is not supported, and defaults to 0 seconds.
Do not use this parameter.
| Sürüm: | Açıklama |
|---|---|
| PECL memcache 3.0.5 |
The exptime is deprecated, and should not be supplied.
Values other than 0 may cause unexpected errors.
|
Örnek 1 Memcache::delete() example
<?php
/* procedural API */
$memcache_obj = memcache_connect('memcache_host', 11211);
/* item will be deleted by the server */
memcache_delete($memcache_obj, 'key_to_delete');
/* OO API */
$memcache_obj = new Memcache;
$memcache_obj->connect('memcache_host', 11211);
$memcache_obj->delete('key_to_delete');
?>