Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. CacheItemPoolInterface.php

function CacheItemPoolInterface::deleteItem

Removes the item from the pool.

Parameters

string $key: The key to delete.

Return value

bool True if the item was successfully removed. False if there was an error.

Throws

InvalidArgumentException If the $key string is not a legal value a \Psr\Cache\InvalidArgumentException MUST be thrown.

File

vendor/psr/cache/src/CacheItemPoolInterface.php, line 92

Class

CacheItemPoolInterface
CacheItemPoolInterface generates CacheItemInterface objects.

Namespace

Psr\Cache

Code

public function deleteItem(string $key) : bool;
RSS feed
Powered by Drupal