Skip to content

Commit

Permalink
core: remove mentions to older Redis from error and docstring
Browse files Browse the repository at this point in the history
Signed-off-by: Mikhail Koviazin <[email protected]>
  • Loading branch information
mkmkme committed May 28, 2024
1 parent aadb338 commit bcb18ac
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions valkey/commands/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -3855,8 +3855,8 @@ def xpending_range(
name: name of the stream.
groupname: name of the consumer group.
idle: available from version 6.2. filter entries by their
idle-time, given in milliseconds (optional).
idle: filter entries by their idle-time, given
in milliseconds (optional).
min: minimum stream ID.
max: maximum stream ID.
count: number of messages to return
Expand Down Expand Up @@ -5364,12 +5364,9 @@ def script_flush(
For more information see https://valkey.io/commands/script-flush
"""

# Redis pre 6 had no sync_type.
if sync_type not in ["SYNC", "ASYNC", None]:
raise DataError(
"SCRIPT FLUSH defaults to SYNC in valkey > 6.2, or "
"accepts SYNC/ASYNC. For older versions, "
"of valkey leave as None."
"SCRIPT FLUSH defaults to SYNC in valkey, or accepts SYNC/ASYNC."
)
if sync_type is None:
pieces = []
Expand Down

0 comments on commit bcb18ac

Please sign in to comment.