You are here

protected function PredisCache::doFetchMultiple in Plug 7

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

lib/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, $fetchedItems));
}