Skip to content

docs: fix zadd command parameter description #3727

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Aug 7, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions redis/commands/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
"""
Expand Down