Package io.quarkus.redis.datasource.keys
Class KeyScanArgs
- java.lang.Object
-
- io.quarkus.redis.datasource.ScanArgs
-
- io.quarkus.redis.datasource.keys.KeyScanArgs
-
public class KeyScanArgs extends ScanArgs
Represents thescancommands flags.
-
-
Constructor Summary
Constructors Constructor Description KeyScanArgs()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description KeyScanArgscount(long count)Sets the max number of items in each batch.KeyScanArgsmatch(String pattern)Sets aMATCHpatternList<String>toArgs()KeyScanArgstype(RedisValueType type)You can use the TYPE option to ask SCAN to only return objects that match a given type, allowing you to iterate through the database looking for keys of a specific type.
-
-
-
Method Detail
-
type
public KeyScanArgs type(RedisValueType type)
You can use the TYPE option to ask SCAN to only return objects that match a given type, allowing you to iterate through the database looking for keys of a specific type.- Parameters:
type- the type value- Returns:
- the current
KeyScanArgs
-
count
public KeyScanArgs count(long count)
Sets the max number of items in each batch. The default value is 10.
-
match
public KeyScanArgs match(String pattern)
Sets aMATCHpattern
-
-