You are here

public function DrupalMemcacheBase::delete in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 modules/memcache/src/DrupalMemcacheBase.php \Drupal\memcache\DrupalMemcacheBase::delete()

Deletes an item from Memcache.

Parameters

string $key: The key to delete from storage.

Return value

bool TRUE on success or FALSE on failure.

Overrides DrupalMemcacheInterface::delete

File

modules/memcache/src/DrupalMemcacheBase.php, line 101
Contains \Drupal\memcache\DrupalMemcacheBase.

Class

DrupalMemcacheBase
Class DrupalMemcacheBase.

Namespace

Drupal\memcache

Code

public function delete($key) {
  $full_key = $this
    ->key($key);
  return $this->memcache
    ->delete($full_key, 0);
}