aboutsummaryrefslogtreecommitdiff
path: root/examples/redis-unstable/src/commands/msetnx.json
diff options
context:
space:
mode:
authorMitja Felicijan <mitja.felicijan@gmail.com>2026-01-21 22:40:55 +0100
committerMitja Felicijan <mitja.felicijan@gmail.com>2026-01-21 22:40:55 +0100
commit5d8dfe892a2ea89f706ee140c3bdcfd89fe03fda (patch)
tree1acdfa5220cd13b7be43a2a01368e80d306473ca /examples/redis-unstable/src/commands/msetnx.json
parentc7ab12bba64d9c20ccd79b132dac475f7bc3923e (diff)
downloadcrep-5d8dfe892a2ea89f706ee140c3bdcfd89fe03fda.tar.gz
Add Redis source code for testing
Diffstat (limited to 'examples/redis-unstable/src/commands/msetnx.json')
-rw-r--r--examples/redis-unstable/src/commands/msetnx.json67
1 files changed, 67 insertions, 0 deletions
diff --git a/examples/redis-unstable/src/commands/msetnx.json b/examples/redis-unstable/src/commands/msetnx.json
new file mode 100644
index 0000000..27592d3
--- /dev/null
+++ b/examples/redis-unstable/src/commands/msetnx.json
@@ -0,0 +1,67 @@
1{
2 "MSETNX": {
3 "summary": "Atomically modifies the string values of one or more keys only when all keys don't exist.",
4 "complexity": "O(N) where N is the number of keys to set.",
5 "group": "string",
6 "since": "1.0.1",
7 "arity": -3,
8 "function": "msetnxCommand",
9 "command_flags": [
10 "WRITE",
11 "DENYOOM"
12 ],
13 "acl_categories": [
14 "STRING"
15 ],
16 "key_specs": [
17 {
18 "flags": [
19 "OW",
20 "INSERT"
21 ],
22 "begin_search": {
23 "index": {
24 "pos": 1
25 }
26 },
27 "find_keys": {
28 "range": {
29 "lastkey": -1,
30 "step": 2,
31 "limit": 0
32 }
33 }
34 }
35 ],
36 "reply_schema": {
37 "oneOf": [
38 {
39 "description": "No key was set (at least one key already existed).",
40 "const": 0
41 },
42 {
43 "description": "All the keys were set.",
44 "const": 1
45 }
46 ]
47 },
48 "arguments": [
49 {
50 "name": "data",
51 "type": "block",
52 "multiple": true,
53 "arguments": [
54 {
55 "name": "key",
56 "type": "key",
57 "key_spec_index": 0
58 },
59 {
60 "name": "value",
61 "type": "string"
62 }
63 ]
64 }
65 ]
66 }
67}