Esempio n. 1
0
 public void zscan(final byte[] key, final byte[] cursor, final ScanParams params) {
   final List<byte[]> args = new ArrayList<byte[]>();
   args.add(key);
   args.add(cursor);
   args.addAll(params.getParams());
   sendCommand(ZSCAN, args.toArray(new byte[args.size()][]));
 }
Esempio n. 2
0
 @Deprecated
 /**
  * This method is deprecated due to bug (scan cursor should be unsigned long) And will be removed
  * on next major release
  *
  * @see https://github.com/xetorthio/jedis/issues/531
  */
 public void scan(int cursor, final ScanParams params) {
   final List<byte[]> args = new ArrayList<byte[]>();
   args.add(toByteArray(cursor));
   args.addAll(params.getParams());
   sendCommand(SCAN, args.toArray(new byte[args.size()][]));
 }