From 69829819561dd586ad38aeb10ed71ca0771b9d7a Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 15 Aug 2022 14:04:47 +0200 Subject: Merging upstream version 1.12.1. Signed-off-by: Daniel Baumann --- iredis/redis_grammar.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'iredis/redis_grammar.py') 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{c('timeout_const')})" ABORT_CONST = rf"(?P{c('abort_const')})" PXAT_CONST = rf"(?P{c('pxat_const')})" EXAT_CONST = rf"(?P{c('exat_const')})" +WITHVALUES_CONST = rf"(?P{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\|.*)?" -- cgit v1.2.3