scan method

Future<Scan> scan(
  1. int cursor, {
  2. String? pattern,
  3. int? count,
})

scan

Implementation

Future<Scan> scan(int cursor, {String? pattern, int? count}) async {
  List<RespType<dynamic>>? result = await _runWithRetryNew(() async {
    return (await RespCommandsTier1(_client!)
            .scan(cursor, pattern: pattern, count: count))
        .toArray()
        .payload;
  });

  return Scan.fromResult(result);
}