protected function CacheProvider::doFetchMultiple in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/doctrine/cache/lib/Doctrine/Common/Cache/CacheProvider.php \Doctrine\Common\Cache\CacheProvider::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.
1 call to CacheProvider::doFetchMultiple()
- CacheProvider::fetchMultiple in vendor/
doctrine/ cache/ lib/ Doctrine/ Common/ Cache/ CacheProvider.php - Returns an associative array of values for keys is found in cache.
4 methods override CacheProvider::doFetchMultiple()
- ApcCache::doFetchMultiple in vendor/
doctrine/ cache/ lib/ Doctrine/ Common/ Cache/ ApcCache.php - Default implementation of doFetchMultiple. Each driver that supports multi-get should owerwrite it.
- MemcachedCache::doFetchMultiple in vendor/
doctrine/ cache/ lib/ Doctrine/ Common/ Cache/ MemcachedCache.php - Default implementation of doFetchMultiple. Each driver that supports multi-get should owerwrite it.
- PredisCache::doFetchMultiple in vendor/
doctrine/ cache/ lib/ Doctrine/ Common/ Cache/ PredisCache.php - Default implementation of doFetchMultiple. Each driver that supports multi-get should owerwrite it.
- RedisCache::doFetchMultiple in vendor/
doctrine/ cache/ lib/ Doctrine/ Common/ Cache/ RedisCache.php - Default implementation of doFetchMultiple. Each driver that supports multi-get should owerwrite it.
File
- vendor/
doctrine/ cache/ lib/ Doctrine/ Common/ Cache/ CacheProvider.php, line 210
Class
- CacheProvider
- Base class for cache provider implementations.
Namespace
Doctrine\Common\CacheCode
protected function doFetchMultiple(array $keys) {
$returnValues = array();
foreach ($keys as $index => $key) {
if (false !== ($item = $this
->doFetch($key))) {
$returnValues[$key] = $item;
}
}
return $returnValues;
}