You are here

protected function PredisCache::doFetchMultiple in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/doctrine/cache/lib/Doctrine/Common/Cache/PredisCache.php \Doctrine\Common\Cache\PredisCache::doFetchMultiple()

Default implementation of doFetchMultiple. Each driver that supports multi-get should owerwrite it.

Parameters

array $keys Array of keys to retrieve from cache:

Return value

array Array of values retrieved for the given keys.

Overrides CacheProvider::doFetchMultiple

File

vendor/doctrine/cache/lib/Doctrine/Common/Cache/PredisCache.php, line 45

Class

PredisCache
Predis cache provider.

Namespace

Doctrine\Common\Cache

Code

protected function doFetchMultiple(array $keys) {
  $fetchedItems = call_user_func_array(array(
    $this->client,
    'mget',
  ), $keys);
  return array_filter(array_combine($keys, array_map('unserialize', $fetchedItems)));
}