function dmemcache_delete in Memcache API and Integration 5
Same name and namespace in other branches
- 5.2 dmemcache.inc \dmemcache_delete()
- 6 dmemcache.inc \dmemcache_delete()
- 7 dmemcache.inc \dmemcache_delete()
Deletes an item from the cache.
Parameters
$key The key with which the item was stored.:
$bin The bin in which the item was stored.:
Return value
Returns TRUE on success or FALSE on failure.
4 calls to dmemcache_delete()
- cache_clear_all in ./
memcache.db.inc - Expire data from the cache. If called without arguments, expirable entries will be cleared from the cache_page table.
- cache_clear_all in ./
memcache.inc - Expire data from the cache. If called without arguments, expirable entries will be cleared from the cache_page table.
- sess_destroy_sid in ./
memcache-session.inc - Called by PHP session handling with the PHP session ID to end a user's session.
- sess_regenerate in ./
memcache-session.inc
File
- ./
dmemcache.inc, line 92
Code
function dmemcache_delete($key, $bin = 'cache') {
if ($mc = dmemcache_object($bin)) {
$full_key = dmemcache_key($key, $bin);
return $mc
->delete($full_key);
}
return FALSE;
}