diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2022-08-15 12:04:44 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2022-08-15 12:04:44 +0000 |
commit | 92fdafd73450b0e27e354f3225e84e00e5d0b6cd (patch) | |
tree | dca744bab83dd06aa43d691925d7dce34ed0b58e /iredis/redis_grammar.py | |
parent | Adding upstream version 1.12.0. (diff) | |
download | iredis-92fdafd73450b0e27e354f3225e84e00e5d0b6cd.tar.xz iredis-92fdafd73450b0e27e354f3225e84e00e5d0b6cd.zip |
Adding upstream version 1.12.1.upstream/1.12.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'iredis/redis_grammar.py')
-rw-r--r-- | iredis/redis_grammar.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/iredis/redis_grammar.py b/iredis/redis_grammar.py index 4e38540..b9e2ea8 100644 --- a/iredis/redis_grammar.py +++ b/iredis/redis_grammar.py @@ -16,6 +16,7 @@ logger = logging.getLogger(__name__) CONST = { "failoverchoice": "TAKEOVER FORCE", "withscores": "WITHSCORES", + "withvalues_const": "WITHVALUES", "limit": "LIMIT", "expiration": "EX PX", "exat_const": "EXAT", @@ -362,6 +363,7 @@ TIMEOUT_CONST = rf"(?P<timeout_const>{c('timeout_const')})" ABORT_CONST = rf"(?P<abort_const>{c('abort_const')})" PXAT_CONST = rf"(?P<pxat_const>{c('pxat_const')})" EXAT_CONST = rf"(?P<exat_const>{c('exat_const')})" +WITHVALUES_CONST = rf"(?P<withvalues_const>{c('withvalues_const')})" command_grammar = compile(COMMAND) @@ -660,6 +662,10 @@ GRAMMAR = { (\s+ {EXAT_CONST} \s+ {TIMESTAMP}) )? \s*""", + "command_key_count_withvalues": rf""" + \s+ {KEY} + (\s+ {COUNT} (\s+ {WITHVALUES_CONST})?)? + \s*""", } pipeline = r"(?P<shellcommand>\|.*)?" |