summaryrefslogtreecommitdiffstats
path: root/src/commands/sismember.json
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands/sismember.json')
-rw-r--r--src/commands/sismember.json59
1 files changed, 59 insertions, 0 deletions
diff --git a/src/commands/sismember.json b/src/commands/sismember.json
new file mode 100644
index 0000000..51ef920
--- /dev/null
+++ b/src/commands/sismember.json
@@ -0,0 +1,59 @@
+{
+ "SISMEMBER": {
+ "summary": "Determines whether a member belongs to a set.",
+ "complexity": "O(1)",
+ "group": "set",
+ "since": "1.0.0",
+ "arity": 3,
+ "function": "sismemberCommand",
+ "command_flags": [
+ "READONLY",
+ "FAST"
+ ],
+ "acl_categories": [
+ "SET"
+ ],
+ "key_specs": [
+ {
+ "flags": [
+ "RO"
+ ],
+ "begin_search": {
+ "index": {
+ "pos": 1
+ }
+ },
+ "find_keys": {
+ "range": {
+ "lastkey": 0,
+ "step": 1,
+ "limit": 0
+ }
+ }
+ }
+ ],
+ "reply_schema": {
+ "oneOf": [
+ {
+ "const": 0,
+ "description": "The element is not a member of the set, or the key does not exist."
+ },
+ {
+ "const": 1,
+ "description": "The element is a member of the set."
+ }
+ ]
+ },
+ "arguments": [
+ {
+ "name": "key",
+ "type": "key",
+ "key_spec_index": 0
+ },
+ {
+ "name": "member",
+ "type": "string"
+ }
+ ]
+ }
+}