aboutsummaryrefslogtreecommitdiff
path: root/examples/redis-unstable/src/commands/rename.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/rename.json
parentc7ab12bba64d9c20ccd79b132dac475f7bc3923e (diff)
downloadcrep-5d8dfe892a2ea89f706ee140c3bdcfd89fe03fda.tar.gz
Add Redis source code for testing
Diffstat (limited to 'examples/redis-unstable/src/commands/rename.json')
-rw-r--r--examples/redis-unstable/src/commands/rename.json72
1 files changed, 72 insertions, 0 deletions
diff --git a/examples/redis-unstable/src/commands/rename.json b/examples/redis-unstable/src/commands/rename.json
new file mode 100644
index 0000000..a8b65ae
--- /dev/null
+++ b/examples/redis-unstable/src/commands/rename.json
@@ -0,0 +1,72 @@
1{
2 "RENAME": {
3 "summary": "Renames a key and overwrites the destination.",
4 "complexity": "O(1)",
5 "group": "generic",
6 "since": "1.0.0",
7 "arity": 3,
8 "function": "renameCommand",
9 "history": [],
10 "command_flags": [
11 "WRITE"
12 ],
13 "acl_categories": [
14 "KEYSPACE"
15 ],
16 "key_specs": [
17 {
18 "flags": [
19 "RW",
20 "ACCESS",
21 "DELETE"
22 ],
23 "begin_search": {
24 "index": {
25 "pos": 1
26 }
27 },
28 "find_keys": {
29 "range": {
30 "lastkey": 0,
31 "step": 1,
32 "limit": 0
33 }
34 }
35 },
36 {
37 "flags": [
38 "OW",
39 "UPDATE"
40
41 ],
42 "begin_search": {
43 "index": {
44 "pos": 2
45 }
46 },
47 "find_keys": {
48 "range": {
49 "lastkey": 0,
50 "step": 1,
51 "limit": 0
52 }
53 }
54 }
55 ],
56 "arguments": [
57 {
58 "name": "key",
59 "type": "key",
60 "key_spec_index": 0
61 },
62 {
63 "name": "newkey",
64 "type": "key",
65 "key_spec_index": 1
66 }
67 ],
68 "reply_schema": {
69 "const": "OK"
70 }
71 }
72}