zscan method

Future<Zscan> zscan(
  1. String key,
  2. int cursor, {
  3. String? pattern,
  4. int? count,
})

zscan

Implementation

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

  return Zscan.fromResult(result);
}