Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion redis/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -820,7 +820,7 @@ class AbstractRedis:
# **string_keys_to_dict(
# "COPY "
# "HEXISTS HMSET MOVE MSETNX PERSIST "
# "PSETEX RENAMENX SISMEMBER SMOVE SETEX SETNX",
# "PSETEX RENAMENX SMOVE SETEX SETNX",
# bool,
# ),
# **string_keys_to_dict(
Expand Down
8 changes: 6 additions & 2 deletions redis/commands/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -3339,9 +3339,13 @@ def sinterstore(
args = list_or_args(keys, args)
return self.execute_command("SINTERSTORE", dest, *args)

def sismember(self, name: str, value: str) -> Union[Awaitable[bool], bool]:
def sismember(
self, name: str, value: str
) -> Union[Awaitable[Union[Literal[0], Literal[1]]], Union[Literal[0], Literal[1]]]:
"""
Return a boolean indicating if ``value`` is a member of set ``name``
Return whether ``value`` is a member of set ``name``:
- 1 if the value is a member of the set.
- 0 if the value is not a member of the set or if key does not exist.

For more information see https://redis.io/commands/sismember
"""
Expand Down