From 7d81e51252c00d0d6442d3339b9b897d96d5e854 Mon Sep 17 00:00:00 2001 From: sobolevn Date: Sat, 2 Aug 2025 13:40:29 +0300 Subject: [PATCH] docs: fix `zadd` command parameter description I changed: the case, because they are all in lower-case as parameters of `zadd()`. And fixed the description to be in style with others. --- redis/commands/core.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/redis/commands/core.py b/redis/commands/core.py index d6fb550724..9fcb38883a 100644 --- a/redis/commands/core.py +++ b/redis/commands/core.py @@ -4172,17 +4172,17 @@ def zadd( the existing score will be incremented by. When using this mode the return value of ZADD will be the new score of the element. - ``LT`` Only update existing elements if the new score is less than + ``lt`` only updates existing elements if the new score is less than the current score. This flag doesn't prevent adding new elements. - ``GT`` Only update existing elements if the new score is greater than + ``gt`` only updates existing elements if the new score is greater than the current score. This flag doesn't prevent adding new elements. The return value of ZADD varies based on the mode specified. With no options, ZADD returns the number of new elements added to the sorted set. - ``NX``, ``LT``, and ``GT`` are mutually exclusive options. + ``nx``, ``lt``, and ``gt`` are mutually exclusive options. See: https://redis.io/commands/ZADD """