public function getMultiple($keys, $default = null)
    {
        $mgetResult = $this->call('mget', [$keys]);
        if ($mgetResult === false) {
            return $default;
        }
        $result = [];
        foreach ($mgetResult ?? [] as $key => $value) {
            $result[$keys[$key]] = $value;
        }

        return $result;
    }
public function getMultiple($keys, $default = null)
    {
        $mgetResult = $this->call('mget', [$keys]);
        if ($mgetResult === false) {
            return $default;
        }
        $result = [];
        foreach ($mgetResult ?? [] as $key => $value) {
            $result[$keys[$key]] = $value;
        }

        return $result;
    }
public function getMultiple ( $ keys , $ default = null ) { $ mgetResult = $ this -> call ( 'mget' , [ $ keys ] ) ; if ( $ mgetResult === false ) { return $ default ; } $ result = [ ] ; foreach ( $ mgetResult ?? [ ] as $ key => $ value ) { $ result [ $ keys [ $ key ] ] = $ value ; } return $ result ; }
Returns the values of all specified keys.
For every key that does not hold a string value or does not exist,
the special value false is returned. Because of this, the operation never fails.

@param iterable $keys
@param mixed    $default

@return array|mixed
Returns the values of all specified keys . For every key that does not hold a string value or does not exist the special value false is returned . Because of this the operation never fails .