scan method
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);
}