Additional checks for getMultiple method of ApcuDriver
This commit is contained in:
parent
3bff084b80
commit
2ea62648d0
@ -73,7 +73,15 @@ class ApcuDriver extends AbstractDriver {
|
|||||||
*/
|
*/
|
||||||
public function getMultiple(array $keys = []): array
|
public function getMultiple(array $keys = []): array
|
||||||
{
|
{
|
||||||
return \apcu_fetch($keys);
|
$status = FALSE;
|
||||||
|
$output = apcu_fetch($keys, $status);
|
||||||
|
|
||||||
|
if ($status === FALSE || !is_array($output))
|
||||||
|
{
|
||||||
|
return [];
|
||||||
|
}
|
||||||
|
|
||||||
|
return $output;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user