You are here

protected function RedisCache::doFetchMultiple in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/doctrine/cache/lib/Doctrine/Common/Cache/RedisCache.php \Doctrine\Common\Cache\RedisCache::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/RedisCache.php, line 72

Class

RedisCache
Redis cache provider.

Namespace

Doctrine\Common\Cache

Code

protected function doFetchMultiple(array $keys) {
  return array_filter(array_combine($keys, $this->redis
    ->mget($keys)));
}