info method

Future<Info> info([
  1. String? section
])

info

Implementation

Future<Info> info([String? section]) async {
  List<String> result = await _runWithRetryNew(() async {
    final bulkString = (await RespCommandsTier1(_client!).info(section))
        .toBulkString()
        .payload;
    if (bulkString != null) {
      return bulkString
          .split('\n')
          .where((e) => e.isNotEmpty)
          .toList(growable: false);
    }
    return [];
  });
  return Info.fromResult(result);
}