summaryrefslogtreecommitdiffstats
path: root/src/commands/smismember.json
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands/smismember.json')
-rw-r--r--src/commands/smismember.json66
1 files changed, 66 insertions, 0 deletions
diff --git a/src/commands/smismember.json b/src/commands/smismember.json
new file mode 100644
index 0000000..dbc1ddc
--- /dev/null
+++ b/src/commands/smismember.json
@@ -0,0 +1,66 @@
+{
+ "SMISMEMBER": {
+ "summary": "Determines whether multiple members belong to a set.",
+ "complexity": "O(N) where N is the number of elements being checked for membership",
+ "group": "set",
+ "since": "6.2.0",
+ "arity": -3,
+ "function": "smismemberCommand",
+ "command_flags": [
+ "READONLY",
+ "FAST"
+ ],
+ "acl_categories": [
+ "SET"
+ ],
+ "key_specs": [
+ {
+ "flags": [
+ "RO",
+ "ACCESS"
+ ],
+ "begin_search": {
+ "index": {
+ "pos": 1
+ }
+ },
+ "find_keys": {
+ "range": {
+ "lastkey": 0,
+ "step": 1,
+ "limit": 0
+ }
+ }
+ }
+ ],
+ "reply_schema": {
+ "type": "array",
+ "description": "List representing the membership of the given elements, in the same order as they are requested.",
+ "minItems": 1,
+ "items": {
+ "oneOf": [
+ {
+ "const": 0,
+ "description": "Not a member of the set or the key does not exist."
+ },
+ {
+ "const": 1,
+ "description": "A member of the set."
+ }
+ ]
+ }
+ },
+ "arguments": [
+ {
+ "name": "key",
+ "type": "key",
+ "key_spec_index": 0
+ },
+ {
+ "name": "member",
+ "type": "string",
+ "multiple": true
+ }
+ ]
+ }
+}