protected doFetchMultiple ( array $keys ) : array | ||
$keys | array | Array of keys to retrieve from cache |
Результат | array | Array of values retrieved for the given keys. |
protected function doFetchMultiple(array $keys)
{
$returnValues = [];
foreach ($keys as $key) {
if (false !== ($item = $this->doFetch($key)) || $this->doContains($key)) {
$returnValues[$key] = $item;
}
}
return $returnValues;
}