summaryrefslogtreecommitdiff
path: root/redis/commands/core.py
diff options
context:
space:
mode:
Diffstat (limited to 'redis/commands/core.py')
-rw-r--r--redis/commands/core.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/redis/commands/core.py b/redis/commands/core.py
index 6512b45..8dba5a2 100644
--- a/redis/commands/core.py
+++ b/redis/commands/core.py
@@ -1768,6 +1768,14 @@ class CoreCommands:
"""Return all members of the set ``name``"""
return self.execute_command('SMEMBERS', name)
+ def smismember(self, name, values, *args):
+ """
+ Return whether each value in ``values`` is a member of the set ``name``
+ as a list of ``bool`` in the order of ``values``
+ """
+ args = list_or_args(values, args)
+ return self.execute_command('SMISMEMBER', name, *args)
+
def smove(self, src, dst, value):
"""Move ``value`` from set ``src`` to set ``dst`` atomically"""
return self.execute_command('SMOVE', src, dst, value)