/** * {@inheritdoc} */ public function getMultiple(&$cids, $allow_invalid = FALSE) { $cidsCopy = $cids; $cache = $this->cacheBackend->getMultiple($cids, $allow_invalid); foreach ($cidsCopy as $cid) { if (in_array($cid, $cids)) { $this->cacheDataCollector->registerCacheMiss($this->bin, $cid); } else { $cacheCopy = new \StdClass(); $cacheCopy->cid = $cache[$cid]->cid; $cacheCopy->expire = $cache[$cid]->expire; $cacheCopy->tags = $cache[$cid]->tags; $this->cacheDataCollector->registerCacheHit($this->bin, $cacheCopy); } } return $cache; }