scan method

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

Implementation

Future<RespType> scan(int cursor, {String? pattern, int? count}) async {
  return tier0.execute([
    'SCAN',
    '$cursor',
    if (pattern != null) ...['MATCH', pattern],
    if (count != null) ...['COUNT', count],
  ]);
}