Class ScanArgs

  • Direct Known Subclasses:
    KeyScanArgs

    public class ScanArgs
    extends Object
    Represents the scan commands flags.
    • Constructor Detail

      • ScanArgs

        public ScanArgs()
    • Method Detail

      • count

        public ScanArgs count​(long count)
        Sets the max number of items in each batch. The default value is 10.
        Parameters:
        count - the number of item, must be strictly positive
        Returns:
        the current ScanArgs
      • match

        public ScanArgs match​(String pattern)
        Sets a MATCH pattern
        Parameters:
        pattern - the pattern, must not be null
        Returns:
        the current ScanArgs