protected function CacheProvider::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.
1 call to CacheProvider::doFetchMultiple()
- CacheProvider::fetchMultiple in lib/
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 lib/
doctrine/ cache/ lib/ Doctrine/ Common/ Cache/ ApcCache.php - Default implementation of doFetchMultiple. Each driver that supports multi-get should owerwrite it.
- MemcachedCache::doFetchMultiple in lib/
doctrine/ cache/ lib/ Doctrine/ Common/ Cache/ MemcachedCache.php - Default implementation of doFetchMultiple. Each driver that supports multi-get should owerwrite it.
- PredisCache::doFetchMultiple in lib/
doctrine/ cache/ lib/ Doctrine/ Common/ Cache/ PredisCache.php - Default implementation of doFetchMultiple. Each driver that supports multi-get should owerwrite it.
- RedisCache::doFetchMultiple in lib/
doctrine/ cache/ lib/ Doctrine/ Common/ Cache/ RedisCache.php - Default implementation of doFetchMultiple. Each driver that supports multi-get should owerwrite it.
File
- lib/
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;
}