You are here

public function JsProxyCache::getMultiple in JS Callback Handler 7.2

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

src/JsProxyCache.php, line 107

Class

JsProxyCache
JS custom cache handler.

Code

public function getMultiple(&$cids) {
  $cache = $this->backend
    ->getMultiple($cids);
  if ($cids) {
    $this
      ->doFullBootstrap();
  }
  return $cache;
}