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\CacheCode
public function getItems(array $keys = []) : iterable;