protected function RedisCache::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/ RedisCache.php, line 72
Class
- RedisCache
- Redis cache provider.
Namespace
Doctrine\Common\CacheCode
protected function doFetchMultiple(array $keys) {
$returnValues = array();
$fetchedItems = $this->redis
->mget($keys);
foreach ($keys as $key) {
if (isset($fetchedItems[$key])) {
$returnValues[$key] = $fetchedItems[$key];
}
}
return $returnValues;
}