public function DriverBase::delete in Memcache API and Integration 8.2
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
- src/
Driver/ DriverBase.php, line 119  
Class
- DriverBase
 - Class DriverBase.
 
Namespace
Drupal\memcache\DriverCode
public function delete($key) {
  $collect_stats = $this
    ->statsInit();
  $full_key = $this
    ->key($key);
  $result = $this->memcache
    ->delete($full_key, 0);
  if ($collect_stats) {
    $this
      ->statsWrite('delete', 'cache', [
      $full_key => $result,
    ]);
  }
  return $result;
}