@Experimental public class ArGrepPredicate extends Object
ARGREP command.
Each predicate has a ArGrepPredicate.Type (EXACT, MATCH, GLOB, or RE) and a pattern string. Multiple predicates can be combined with
AND/OR logic via ArGrepArgs.
ArGrepArgs,
Redis Documentation: ARGREP| Modifier and Type | Class and Description |
|---|---|
static class |
ArGrepPredicate.Type
The type of predicate matching.
|
| Constructor and Description |
|---|
ArGrepPredicate(ArGrepPredicate.Type type,
String pattern)
Creates a new predicate.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getPattern()
Gets the pattern string.
|
ArGrepPredicate.Type |
getType()
Gets the predicate type.
|
public ArGrepPredicate(ArGrepPredicate.Type type, String pattern)
type - the predicate type, must not be null.pattern - the pattern string, must not be null.public ArGrepPredicate.Type getType()
public String getPattern()
Copyright © 2026 lettuce.io. All rights reserved.