/** * {@inheritdoc} */ public function getMultiple(CollectionCacheEntry $collection) { $keysToRetrieve = array(); foreach ($collection->identifiers as $index => $key) { $keysToRetrieve[$index] = $this->name . '_' . $key->hash; } $items = $this->cache->fetchMultiple($keysToRetrieve); if (count($items) !== count($keysToRetrieve)) { return null; } $returnableItems = array(); foreach ($keysToRetrieve as $index => $key) { $returnableItems[$index] = $items[$key]; } return $returnableItems; }