function VariationCacheInterface::getMultiple
Gets multiple cache entries based on a set of cache keys.
Parameters
array $items: An associative array keyed by arbitrary identifiers. Each value is a set of arguments you would otherwise pass to ::get(). Example:
$items = [
'item_a' => [
[
'key1',
'key2',
],
$cacheability_a,
],
'item_b' => [
[
'another_key',
],
$cacheability_b,
],
];
Return value
array An associative array keyed by the same keys as $items, containing only the items found in the cache. Items that did not resolve are omitted.
See also
\Drupal\Core\Cache\VariationCacheInterface::get()
1 method overrides VariationCacheInterface::getMultiple()
- VariationCache::getMultiple in core/
lib/ Drupal/ Core/ Cache/ VariationCache.php - Gets multiple cache entries based on a set of cache keys.
File
-
core/
lib/ Drupal/ Core/ Cache/ VariationCacheInterface.php, line 51
Class
- VariationCacheInterface
- Defines an interface for variation cache implementations.
Namespace
Drupal\Core\CacheCode
public function getMultiple(array $items) : array;
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.