smembers method

Future<List<String?>> smembers(
  1. String key
)

smembers

Implementation

Future<List<String?>> smembers(String key) async {
  return await _runWithRetryNew(() async {
    final result =
        (await RespCommandsTier1(_client!).smembers(key)).toArray().payload;
    if (result != null) {
      return result
          .map((e) => e.toBulkString().payload)
          .toList(growable: false);
    }
    return [];
  });
}