You are here

public function CacheCollectorInterface::delete in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Cache/CacheCollectorInterface.php \Drupal\Core\Cache\CacheCollectorInterface::delete()
  2. 9 core/lib/Drupal/Core/Cache/CacheCollectorInterface.php \Drupal\Core\Cache\CacheCollectorInterface::delete()

Deletes the element.

It depends on the specific case and implementation whether this has a permanent effect or if it just affects the current request.

Parameters

string $key: Key that identifies the data.

1 method overrides CacheCollectorInterface::delete()
CacheCollector::delete in core/lib/Drupal/Core/Cache/CacheCollector.php
Deletes the element.

File

core/lib/Drupal/Core/Cache/CacheCollectorInterface.php, line 54

Class

CacheCollectorInterface
Provides a caching wrapper to be used in place of large structures.

Namespace

Drupal\Core\Cache

Code

public function delete($key);