Package io.quarkus.redis.datasource
Class ScanArgs
- java.lang.Object
-
- io.quarkus.redis.datasource.ScanArgs
-
- Direct Known Subclasses:
KeyScanArgs
public class ScanArgs extends Object
Represents thescancommands flags.
-
-
Constructor Summary
Constructors Constructor Description ScanArgs()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ScanArgscount(long count)Sets the max number of items in each batch.ScanArgsmatch(String pattern)Sets aMATCHpatternList<String>toArgs()
-
-
-
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 aMATCHpattern- Parameters:
pattern- the pattern, must not benull- Returns:
- the current
ScanArgs
-
-