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

Breadcrumb

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

function CacheItemPoolInterface::getItem

Returns a Cache Item representing the specified key.

This method must always return a CacheItemInterface object, even in case of a cache miss. It MUST NOT return null.

Parameters

string $key: The key for which to return the corresponding Cache Item.

Return value

CacheItemInterface The corresponding Cache Item.

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 32

Class

CacheItemPoolInterface
CacheItemPoolInterface generates CacheItemInterface objects.

Namespace

Psr\Cache

Code

public function getItem(string $key) : CacheItemInterface;
RSS feed
Powered by Drupal