clientList method

Future<ClientList> clientList()

------------------------------ server ------------------------------ clientList

Implementation

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

  return ClientList.fromResult(result);
}