aboutsummaryrefslogtreecommitdiff
path: root/examples/redis-unstable/src/commands/hexists.json
diff options
context:
space:
mode:
Diffstat (limited to 'examples/redis-unstable/src/commands/hexists.json')
-rw-r--r--examples/redis-unstable/src/commands/hexists.json59
1 files changed, 59 insertions, 0 deletions
diff --git a/examples/redis-unstable/src/commands/hexists.json b/examples/redis-unstable/src/commands/hexists.json
new file mode 100644
index 0000000..f5ea405
--- /dev/null
+++ b/examples/redis-unstable/src/commands/hexists.json
@@ -0,0 +1,59 @@
1{
2 "HEXISTS": {
3 "summary": "Determines whether a field exists in a hash.",
4 "complexity": "O(1)",
5 "group": "hash",
6 "since": "2.0.0",
7 "arity": 3,
8 "function": "hexistsCommand",
9 "command_flags": [
10 "READONLY",
11 "FAST"
12 ],
13 "acl_categories": [
14 "HASH"
15 ],
16 "key_specs": [
17 {
18 "flags": [
19 "RO"
20 ],
21 "begin_search": {
22 "index": {
23 "pos": 1
24 }
25 },
26 "find_keys": {
27 "range": {
28 "lastkey": 0,
29 "step": 1,
30 "limit": 0
31 }
32 }
33 }
34 ],
35 "reply_schema": {
36 "oneOf": [
37 {
38 "description": "The hash does not contain the field, or key does not exist.",
39 "const": 0
40 },
41 {
42 "description": "The hash contains the field.",
43 "const": 1
44 }
45 ]
46 },
47 "arguments": [
48 {
49 "name": "key",
50 "type": "key",
51 "key_spec_index": 0
52 },
53 {
54 "name": "field",
55 "type": "string"
56 }
57 ]
58 }
59}