You are here

public function CacheObjectAPIWrapper::getMultiple in Cache Object API 7

Returns data from the persistent cache when given an array of cache IDs.

Parameters

$cids: An array of cache IDs for the data to retrieve. This is passed by reference, and will have the IDs successfully returned from cache removed.

Return value

An array of the items successfully returned from cache indexed by cid.

Overrides DrupalCacheInterface::getMultiple

File

./cacheobject.inc, line 70
Provides Cache Object API wrapper class.

Class

CacheObjectAPIWrapper
Provides a cache class exposing hooks operating on objects before they are stored to and after they were received from the cache.

Code

public function getMultiple(&$cids) {
  $result = $this->delegate
    ->getMultiple($cids);
  $deliver = module_invoke_all('cacheobject_load', $result, $cids, $this->bin);
  if (!$this
    ->checkResult($deliver)) {
    return array();
  }
  return $result;
}