execute method

Future<Execute> execute(
  1. String str
)

execute

Implementation

Future<Execute> execute(String str) async {
  List<Object> commandList =
      str.split(" ").where((item) => item.trim().isNotEmpty).toList();

  Object result = await _runWithRetryNew(() async {
    return (await RespCommandsTier1(_client!).execute(commandList));
  });

  if (result is RespType2<dynamic>) {
    return Execute.fromResult(result);
  }

  /// 格式化展示
  return Execute.fromResultResp3(result as RespType3<dynamic>);
}