diff options
Diffstat (limited to 'examples/redis-unstable/src/commands/migrate.json')
| -rw-r--r-- | examples/redis-unstable/src/commands/migrate.json | 181 |
1 files changed, 0 insertions, 181 deletions
diff --git a/examples/redis-unstable/src/commands/migrate.json b/examples/redis-unstable/src/commands/migrate.json deleted file mode 100644 index f1dfae4..0000000 --- a/examples/redis-unstable/src/commands/migrate.json +++ /dev/null | |||
| @@ -1,181 +0,0 @@ | |||
| 1 | { | ||
| 2 | "MIGRATE": { | ||
| 3 | "summary": "Atomically transfers a key from one Redis instance to another.", | ||
| 4 | "complexity": "This command actually executes a DUMP+DEL in the source instance, and a RESTORE in the target instance. See the pages of these commands for time complexity. Also an O(N) data transfer between the two instances is performed.", | ||
| 5 | "group": "generic", | ||
| 6 | "since": "2.6.0", | ||
| 7 | "arity": -6, | ||
| 8 | "function": "migrateCommand", | ||
| 9 | "get_keys_function": "migrateGetKeys", | ||
| 10 | "history": [ | ||
| 11 | [ | ||
| 12 | "3.0.0", | ||
| 13 | "Added the `COPY` and `REPLACE` options." | ||
| 14 | ], | ||
| 15 | [ | ||
| 16 | "3.0.6", | ||
| 17 | "Added the `KEYS` option." | ||
| 18 | ], | ||
| 19 | [ | ||
| 20 | "4.0.7", | ||
| 21 | "Added the `AUTH` option." | ||
| 22 | ], | ||
| 23 | [ | ||
| 24 | "6.0.0", | ||
| 25 | "Added the `AUTH2` option." | ||
| 26 | ] | ||
| 27 | ], | ||
| 28 | "command_flags": [ | ||
| 29 | "WRITE" | ||
| 30 | ], | ||
| 31 | "acl_categories": [ | ||
| 32 | "KEYSPACE", | ||
| 33 | "DANGEROUS" | ||
| 34 | ], | ||
| 35 | "command_tips": [ | ||
| 36 | "NONDETERMINISTIC_OUTPUT" | ||
| 37 | ], | ||
| 38 | "key_specs": [ | ||
| 39 | { | ||
| 40 | "flags": [ | ||
| 41 | "RW", | ||
| 42 | "ACCESS", | ||
| 43 | "DELETE" | ||
| 44 | ], | ||
| 45 | "begin_search": { | ||
| 46 | "index": { | ||
| 47 | "pos": 3 | ||
| 48 | } | ||
| 49 | }, | ||
| 50 | "find_keys": { | ||
| 51 | "range": { | ||
| 52 | "lastkey": 0, | ||
| 53 | "step": 1, | ||
| 54 | "limit": 0 | ||
| 55 | } | ||
| 56 | } | ||
| 57 | }, | ||
| 58 | { | ||
| 59 | "flags": [ | ||
| 60 | "RW", | ||
| 61 | "ACCESS", | ||
| 62 | "DELETE", | ||
| 63 | "INCOMPLETE" | ||
| 64 | ], | ||
| 65 | "begin_search": { | ||
| 66 | "keyword": { | ||
| 67 | "keyword": "KEYS", | ||
| 68 | "startfrom": -2 | ||
| 69 | } | ||
| 70 | }, | ||
| 71 | "find_keys": { | ||
| 72 | "range": { | ||
| 73 | "lastkey": -1, | ||
| 74 | "step": 1, | ||
| 75 | "limit": 0 | ||
| 76 | } | ||
| 77 | } | ||
| 78 | } | ||
| 79 | ], | ||
| 80 | "reply_schema": { | ||
| 81 | "oneOf": [ | ||
| 82 | { | ||
| 83 | "const": "OK", | ||
| 84 | "description": "Success." | ||
| 85 | }, | ||
| 86 | { | ||
| 87 | "const": "NOKEY", | ||
| 88 | "description": "No keys were found in the source instance." | ||
| 89 | } | ||
| 90 | ] | ||
| 91 | }, | ||
| 92 | "arguments": [ | ||
| 93 | { | ||
| 94 | "name": "host", | ||
| 95 | "type": "string" | ||
| 96 | }, | ||
| 97 | { | ||
| 98 | "name": "port", | ||
| 99 | "type": "integer" | ||
| 100 | }, | ||
| 101 | { | ||
| 102 | "name": "key-selector", | ||
| 103 | "type": "oneof", | ||
| 104 | "arguments": [ | ||
| 105 | { | ||
| 106 | "name": "key", | ||
| 107 | "type": "key", | ||
| 108 | "key_spec_index": 0 | ||
| 109 | }, | ||
| 110 | { | ||
| 111 | "name": "empty-string", | ||
| 112 | "type": "pure-token", | ||
| 113 | "token": "\"\"" | ||
| 114 | } | ||
| 115 | ] | ||
| 116 | }, | ||
| 117 | { | ||
| 118 | "name": "destination-db", | ||
| 119 | "type": "integer" | ||
| 120 | }, | ||
| 121 | { | ||
| 122 | "name": "timeout", | ||
| 123 | "type": "integer" | ||
| 124 | }, | ||
| 125 | { | ||
| 126 | "name": "copy", | ||
| 127 | "token": "COPY", | ||
| 128 | "type": "pure-token", | ||
| 129 | "optional": true, | ||
| 130 | "since": "3.0.0" | ||
| 131 | }, | ||
| 132 | { | ||
| 133 | "name": "replace", | ||
| 134 | "token": "REPLACE", | ||
| 135 | "type": "pure-token", | ||
| 136 | "optional": true, | ||
| 137 | "since": "3.0.0" | ||
| 138 | }, | ||
| 139 | { | ||
| 140 | "name": "authentication", | ||
| 141 | "type": "oneof", | ||
| 142 | "optional": true, | ||
| 143 | "arguments": [ | ||
| 144 | { | ||
| 145 | "token": "AUTH", | ||
| 146 | "name": "auth", | ||
| 147 | "display": "password", | ||
| 148 | "type": "string", | ||
| 149 | "since": "4.0.7" | ||
| 150 | }, | ||
| 151 | { | ||
| 152 | "token": "AUTH2", | ||
| 153 | "name": "auth2", | ||
| 154 | "type": "block", | ||
| 155 | "since": "6.0.0", | ||
| 156 | "arguments": [ | ||
| 157 | { | ||
| 158 | "name": "username", | ||
| 159 | "type": "string" | ||
| 160 | }, | ||
| 161 | { | ||
| 162 | "name": "password", | ||
| 163 | "type": "string" | ||
| 164 | } | ||
| 165 | ] | ||
| 166 | } | ||
| 167 | ] | ||
| 168 | }, | ||
| 169 | { | ||
| 170 | "token": "KEYS", | ||
| 171 | "name": "keys", | ||
| 172 | "display": "key", | ||
| 173 | "type": "key", | ||
| 174 | "key_spec_index": 1, | ||
| 175 | "optional": true, | ||
| 176 | "multiple": true, | ||
| 177 | "since": "3.0.6" | ||
| 178 | } | ||
| 179 | ] | ||
| 180 | } | ||
| 181 | } | ||
