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

Breadcrumb

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

function CacheItemPoolInterface::getItems

Returns a traversable set of cache items.

Parameters

string[] $keys: An indexed array of keys of items to retrieve.

Return value

iterable An iterable collection of Cache Items keyed by the cache keys of each item. A Cache item will be returned for each key, even if that key is not found. However, if no keys are specified then an empty traversable MUST be returned instead.

Throws

InvalidArgumentException If any of the keys in $keys are not a legal value a \Psr\Cache\InvalidArgumentException MUST be thrown.

File

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

Class

CacheItemPoolInterface
CacheItemPoolInterface generates CacheItemInterface objects.

Namespace

Psr\Cache

Code

public function getItems(array $keys = []) : iterable;
RSS feed
Powered by Drupal