sscan method

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

sscan

Implementation

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

  return Sscan.fromResult(result);
}