function dmemcache_delete in Memcache API and Integration 5.2
Same name and namespace in other branches
- 5 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.
11 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.
- memcachetests.php in ./
memcachetests.php - sess_destroy_sid in ./
session-memcache.inc - Called by PHP session handling with the PHP session ID to end a user's session.
- sess_destroy_sid in ./
session-memcache-db.inc - Called by PHP session handling with the PHP session ID to end a user's session.
File
- ./
dmemcache.inc, line 78
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;
}