]>
Commit | Line | Data |
---|---|---|
3c413d59 | 1 | /* Automatically generated by utils/generate-command-help.rb, do not edit. */ |
5397f2b5 | 2 | |
a2a69d58 PN |
3 | #ifndef __REDIS_HELP_H |
4 | #define __REDIS_HELP_H | |
5397f2b5 | 5 | |
a2a69d58 PN |
6 | static char *commandGroups[] = { |
7 | "generic", | |
8 | "string", | |
9 | "list", | |
10 | "set", | |
11 | "sorted_set", | |
12 | "hash", | |
13 | "pubsub", | |
14 | "transactions", | |
15 | "connection", | |
3c413d59 | 16 | "server", |
17 | "scripting" | |
5397f2b5 TH |
18 | }; |
19 | ||
a2a69d58 | 20 | struct commandHelp { |
5397f2b5 TH |
21 | char *name; |
22 | char *params; | |
23 | char *summary; | |
a2a69d58 | 24 | int group; |
5397f2b5 | 25 | char *since; |
a2a69d58 PN |
26 | } commandHelp[] = { |
27 | { "APPEND", | |
50d0e82d PN |
28 | "key value", |
29 | "Append a value to a key", | |
a2a69d58 | 30 | 1, |
3c413d59 | 31 | "2.0.0" }, |
a2a69d58 | 32 | { "AUTH", |
50d0e82d PN |
33 | "password", |
34 | "Authenticate to the server", | |
a2a69d58 | 35 | 8, |
3c413d59 | 36 | "1.0.0" }, |
a2a69d58 | 37 | { "BGREWRITEAOF", |
50d0e82d PN |
38 | "-", |
39 | "Asynchronously rewrite the append-only file", | |
a2a69d58 | 40 | 9, |
3c413d59 | 41 | "1.0.0" }, |
a2a69d58 | 42 | { "BGSAVE", |
50d0e82d PN |
43 | "-", |
44 | "Asynchronously save the dataset to disk", | |
a2a69d58 | 45 | 9, |
3c413d59 | 46 | "1.0.0" }, |
a2a69d58 | 47 | { "BLPOP", |
50d0e82d PN |
48 | "key [key ...] timeout", |
49 | "Remove and get the first element in a list, or block until one is available", | |
a2a69d58 | 50 | 2, |
3c413d59 | 51 | "2.0.0" }, |
a2a69d58 | 52 | { "BRPOP", |
50d0e82d PN |
53 | "key [key ...] timeout", |
54 | "Remove and get the last element in a list, or block until one is available", | |
a2a69d58 | 55 | 2, |
3c413d59 | 56 | "2.0.0" }, |
6418b4c7 | 57 | { "BRPOPLPUSH", |
58 | "source destination timeout", | |
59 | "Pop a value from a list, push it to another list and return it; or block until one is available", | |
60 | 2, | |
3c413d59 | 61 | "2.2.0" }, |
a2a69d58 | 62 | { "CONFIG GET", |
50d0e82d PN |
63 | "parameter", |
64 | "Get the value of a configuration parameter", | |
a2a69d58 | 65 | 9, |
3c413d59 | 66 | "2.0.0" }, |
6418b4c7 | 67 | { "CONFIG RESETSTAT", |
68 | "-", | |
69 | "Reset the stats returned by INFO", | |
70 | 9, | |
3c413d59 | 71 | "2.0.0" }, |
a2a69d58 | 72 | { "CONFIG SET", |
50d0e82d PN |
73 | "parameter value", |
74 | "Set a configuration parameter to the given value", | |
a2a69d58 | 75 | 9, |
3c413d59 | 76 | "2.0.0" }, |
a2a69d58 | 77 | { "DBSIZE", |
50d0e82d PN |
78 | "-", |
79 | "Return the number of keys in the selected database", | |
a2a69d58 | 80 | 9, |
3c413d59 | 81 | "1.0.0" }, |
a2a69d58 | 82 | { "DEBUG OBJECT", |
50d0e82d PN |
83 | "key", |
84 | "Get debugging information about a key", | |
a2a69d58 | 85 | 9, |
3c413d59 | 86 | "1.0.0" }, |
a2a69d58 | 87 | { "DEBUG SEGFAULT", |
50d0e82d PN |
88 | "-", |
89 | "Make the server crash", | |
a2a69d58 | 90 | 9, |
3c413d59 | 91 | "1.0.0" }, |
a2a69d58 | 92 | { "DECR", |
6418b4c7 | 93 | "key", |
50d0e82d | 94 | "Decrement the integer value of a key by one", |
a2a69d58 | 95 | 1, |
3c413d59 | 96 | "1.0.0" }, |
a2a69d58 | 97 | { "DECRBY", |
50d0e82d PN |
98 | "key decrement", |
99 | "Decrement the integer value of a key by the given number", | |
a2a69d58 | 100 | 1, |
3c413d59 | 101 | "1.0.0" }, |
a2a69d58 | 102 | { "DEL", |
50d0e82d PN |
103 | "key [key ...]", |
104 | "Delete a key", | |
a2a69d58 | 105 | 0, |
3c413d59 | 106 | "1.0.0" }, |
a2a69d58 | 107 | { "DISCARD", |
50d0e82d PN |
108 | "-", |
109 | "Discard all commands issued after MULTI", | |
a2a69d58 | 110 | 7, |
3c413d59 | 111 | "2.0.0" }, |
112 | { "DUMP", | |
113 | "key", | |
114 | "Return a serialized verison of the value stored at the specified key.", | |
115 | 0, | |
116 | "2.6.0" }, | |
a2a69d58 | 117 | { "ECHO", |
50d0e82d PN |
118 | "message", |
119 | "Echo the given string", | |
a2a69d58 | 120 | 8, |
3c413d59 | 121 | "1.0.0" }, |
122 | { "EVAL", | |
123 | "script numkeys key [key ...] arg [arg ...]", | |
124 | "Execute a Lua script server side", | |
125 | 10, | |
126 | "2.6.0" }, | |
a2a69d58 | 127 | { "EXEC", |
50d0e82d PN |
128 | "-", |
129 | "Execute all commands issued after MULTI", | |
a2a69d58 | 130 | 7, |
3c413d59 | 131 | "1.2.0" }, |
a2a69d58 | 132 | { "EXISTS", |
50d0e82d PN |
133 | "key", |
134 | "Determine if a key exists", | |
3c413d59 | 135 | 0, |
136 | "1.0.0" }, | |
a2a69d58 | 137 | { "EXPIRE", |
50d0e82d PN |
138 | "key seconds", |
139 | "Set a key's time to live in seconds", | |
a2a69d58 | 140 | 0, |
3c413d59 | 141 | "1.0.0" }, |
a2a69d58 | 142 | { "EXPIREAT", |
50d0e82d PN |
143 | "key timestamp", |
144 | "Set the expiration for a key as a UNIX timestamp", | |
a2a69d58 | 145 | 0, |
3c413d59 | 146 | "1.2.0" }, |
a2a69d58 | 147 | { "FLUSHALL", |
50d0e82d PN |
148 | "-", |
149 | "Remove all keys from all databases", | |
a2a69d58 | 150 | 9, |
3c413d59 | 151 | "1.0.0" }, |
a2a69d58 | 152 | { "FLUSHDB", |
50d0e82d PN |
153 | "-", |
154 | "Remove all keys from the current database", | |
a2a69d58 | 155 | 9, |
3c413d59 | 156 | "1.0.0" }, |
a2a69d58 | 157 | { "GET", |
50d0e82d PN |
158 | "key", |
159 | "Get the value of a key", | |
a2a69d58 | 160 | 1, |
3c413d59 | 161 | "1.0.0" }, |
6418b4c7 | 162 | { "GETBIT", |
163 | "key offset", | |
164 | "Returns the bit value at offset in the string value stored at key", | |
165 | 1, | |
3c413d59 | 166 | "2.2.0" }, |
167 | { "GETRANGE", | |
168 | "key start end", | |
169 | "Get a substring of the string stored at a key", | |
170 | 1, | |
171 | "2.4.0" }, | |
a2a69d58 | 172 | { "GETSET", |
50d0e82d PN |
173 | "key value", |
174 | "Set the string value of a key and return its old value", | |
a2a69d58 | 175 | 1, |
3c413d59 | 176 | "1.0.0" }, |
a2a69d58 | 177 | { "HDEL", |
3c413d59 | 178 | "key field [field ...]", |
179 | "Delete one or more hash fields", | |
a2a69d58 | 180 | 5, |
3c413d59 | 181 | "2.0.0" }, |
a2a69d58 | 182 | { "HEXISTS", |
50d0e82d PN |
183 | "key field", |
184 | "Determine if a hash field exists", | |
a2a69d58 | 185 | 5, |
3c413d59 | 186 | "2.0.0" }, |
a2a69d58 | 187 | { "HGET", |
50d0e82d PN |
188 | "key field", |
189 | "Get the value of a hash field", | |
a2a69d58 | 190 | 5, |
3c413d59 | 191 | "2.0.0" }, |
a2a69d58 | 192 | { "HGETALL", |
50d0e82d PN |
193 | "key", |
194 | "Get all the fields and values in a hash", | |
a2a69d58 | 195 | 5, |
3c413d59 | 196 | "2.0.0" }, |
a2a69d58 | 197 | { "HINCRBY", |
50d0e82d PN |
198 | "key field increment", |
199 | "Increment the integer value of a hash field by the given number", | |
a2a69d58 | 200 | 5, |
3c413d59 | 201 | "2.0.0" }, |
202 | { "HINCRBYFLOAT", | |
203 | "key field increment", | |
204 | "Increment the float value of a hash field by the given amount", | |
205 | 5, | |
206 | "2.6.0" }, | |
a2a69d58 | 207 | { "HKEYS", |
50d0e82d PN |
208 | "key", |
209 | "Get all the fields in a hash", | |
a2a69d58 | 210 | 5, |
3c413d59 | 211 | "2.0.0" }, |
a2a69d58 | 212 | { "HLEN", |
50d0e82d PN |
213 | "key", |
214 | "Get the number of fields in a hash", | |
a2a69d58 | 215 | 5, |
3c413d59 | 216 | "2.0.0" }, |
a2a69d58 | 217 | { "HMGET", |
50d0e82d PN |
218 | "key field [field ...]", |
219 | "Get the values of all the given hash fields", | |
a2a69d58 | 220 | 5, |
3c413d59 | 221 | "2.0.0" }, |
a2a69d58 | 222 | { "HMSET", |
50d0e82d PN |
223 | "key field value [field value ...]", |
224 | "Set multiple hash fields to multiple values", | |
a2a69d58 | 225 | 5, |
3c413d59 | 226 | "2.0.0" }, |
a2a69d58 | 227 | { "HSET", |
50d0e82d PN |
228 | "key field value", |
229 | "Set the string value of a hash field", | |
a2a69d58 | 230 | 5, |
3c413d59 | 231 | "2.0.0" }, |
a2a69d58 | 232 | { "HSETNX", |
50d0e82d PN |
233 | "key field value", |
234 | "Set the value of a hash field, only if the field does not exist", | |
a2a69d58 | 235 | 5, |
3c413d59 | 236 | "2.0.0" }, |
a2a69d58 | 237 | { "HVALS", |
50d0e82d PN |
238 | "key", |
239 | "Get all the values in a hash", | |
a2a69d58 | 240 | 5, |
3c413d59 | 241 | "2.0.0" }, |
a2a69d58 | 242 | { "INCR", |
50d0e82d PN |
243 | "key", |
244 | "Increment the integer value of a key by one", | |
a2a69d58 | 245 | 1, |
3c413d59 | 246 | "1.0.0" }, |
a2a69d58 | 247 | { "INCRBY", |
50d0e82d | 248 | "key increment", |
3c413d59 | 249 | "Increment the integer value of a key by the given amount", |
a2a69d58 | 250 | 1, |
3c413d59 | 251 | "1.0.0" }, |
252 | { "INCRBYFLOAT", | |
253 | "key increment", | |
254 | "Increment the float value of a key by the given amount", | |
255 | 1, | |
256 | "2.6.0" }, | |
a2a69d58 | 257 | { "INFO", |
50d0e82d PN |
258 | "-", |
259 | "Get information and statistics about the server", | |
a2a69d58 | 260 | 9, |
3c413d59 | 261 | "1.0.0" }, |
a2a69d58 | 262 | { "KEYS", |
50d0e82d PN |
263 | "pattern", |
264 | "Find all keys matching the given pattern", | |
a2a69d58 | 265 | 0, |
3c413d59 | 266 | "1.0.0" }, |
a2a69d58 | 267 | { "LASTSAVE", |
50d0e82d PN |
268 | "-", |
269 | "Get the UNIX time stamp of the last successful save to disk", | |
a2a69d58 | 270 | 9, |
3c413d59 | 271 | "1.0.0" }, |
a2a69d58 | 272 | { "LINDEX", |
50d0e82d PN |
273 | "key index", |
274 | "Get an element from a list by its index", | |
a2a69d58 | 275 | 2, |
3c413d59 | 276 | "1.0.0" }, |
a2a69d58 | 277 | { "LINSERT", |
50d0e82d PN |
278 | "key BEFORE|AFTER pivot value", |
279 | "Insert an element before or after another element in a list", | |
a2a69d58 | 280 | 2, |
3c413d59 | 281 | "2.2.0" }, |
a2a69d58 | 282 | { "LLEN", |
50d0e82d PN |
283 | "key", |
284 | "Get the length of a list", | |
a2a69d58 | 285 | 2, |
3c413d59 | 286 | "1.0.0" }, |
a2a69d58 | 287 | { "LPOP", |
50d0e82d PN |
288 | "key", |
289 | "Remove and get the first element in a list", | |
a2a69d58 | 290 | 2, |
3c413d59 | 291 | "1.0.0" }, |
a2a69d58 | 292 | { "LPUSH", |
3c413d59 | 293 | "key value [value ...]", |
294 | "Prepend one or multiple values to a list", | |
a2a69d58 | 295 | 2, |
3c413d59 | 296 | "1.0.0" }, |
a2a69d58 | 297 | { "LPUSHX", |
50d0e82d PN |
298 | "key value", |
299 | "Prepend a value to a list, only if the list exists", | |
a2a69d58 | 300 | 2, |
3c413d59 | 301 | "2.2.0" }, |
a2a69d58 | 302 | { "LRANGE", |
50d0e82d PN |
303 | "key start stop", |
304 | "Get a range of elements from a list", | |
a2a69d58 | 305 | 2, |
3c413d59 | 306 | "1.0.0" }, |
a2a69d58 | 307 | { "LREM", |
50d0e82d PN |
308 | "key count value", |
309 | "Remove elements from a list", | |
a2a69d58 | 310 | 2, |
3c413d59 | 311 | "1.0.0" }, |
a2a69d58 | 312 | { "LSET", |
50d0e82d PN |
313 | "key index value", |
314 | "Set the value of an element in a list by its index", | |
a2a69d58 | 315 | 2, |
3c413d59 | 316 | "1.0.0" }, |
a2a69d58 | 317 | { "LTRIM", |
50d0e82d PN |
318 | "key start stop", |
319 | "Trim a list to the specified range", | |
a2a69d58 | 320 | 2, |
3c413d59 | 321 | "1.0.0" }, |
a2a69d58 | 322 | { "MGET", |
50d0e82d PN |
323 | "key [key ...]", |
324 | "Get the values of all the given keys", | |
a2a69d58 | 325 | 1, |
3c413d59 | 326 | "1.0.0" }, |
327 | { "MIGRATE", | |
328 | "host port key destination db timeout", | |
329 | "Atomically transfer a key from a Redis instance to another one.", | |
330 | 0, | |
331 | "2.6.0" }, | |
a2a69d58 | 332 | { "MONITOR", |
50d0e82d PN |
333 | "-", |
334 | "Listen for all requests received by the server in real time", | |
a2a69d58 | 335 | 9, |
3c413d59 | 336 | "1.0.0" }, |
a2a69d58 | 337 | { "MOVE", |
50d0e82d PN |
338 | "key db", |
339 | "Move a key to another database", | |
a2a69d58 | 340 | 0, |
3c413d59 | 341 | "1.0.0" }, |
a2a69d58 | 342 | { "MSET", |
50d0e82d PN |
343 | "key value [key value ...]", |
344 | "Set multiple keys to multiple values", | |
a2a69d58 | 345 | 1, |
3c413d59 | 346 | "1.0.1" }, |
a2a69d58 | 347 | { "MSETNX", |
50d0e82d PN |
348 | "key value [key value ...]", |
349 | "Set multiple keys to multiple values, only if none of the keys exist", | |
a2a69d58 | 350 | 1, |
3c413d59 | 351 | "1.0.1" }, |
a2a69d58 | 352 | { "MULTI", |
50d0e82d PN |
353 | "-", |
354 | "Mark the start of a transaction block", | |
a2a69d58 | 355 | 7, |
3c413d59 | 356 | "1.2.0" }, |
357 | { "OBJECT", | |
358 | "subcommand [arguments [arguments ...]]", | |
359 | "Inspect the internals of Redis objects", | |
360 | 0, | |
361 | "2.2.3" }, | |
a2a69d58 | 362 | { "PERSIST", |
50d0e82d PN |
363 | "key", |
364 | "Remove the expiration from a key", | |
a2a69d58 | 365 | 0, |
3c413d59 | 366 | "2.2.0" }, |
367 | { "PEXPIRE", | |
368 | "key milliseconds", | |
369 | "Set a key's time to live in milliseconds", | |
370 | 0, | |
371 | "2.6.0" }, | |
372 | { "PEXPIREAT", | |
373 | "key milliseconds timestamp", | |
374 | "Set the expiration for a key as a UNIX timestamp specified in milliseconds", | |
375 | 0, | |
376 | "2.6.0" }, | |
a2a69d58 | 377 | { "PING", |
50d0e82d PN |
378 | "-", |
379 | "Ping the server", | |
a2a69d58 | 380 | 8, |
3c413d59 | 381 | "1.0.0" }, |
382 | { "PSETEX", | |
383 | "key milliseconds value", | |
384 | "Set the value and expiration in milliseconds of a key", | |
385 | 1, | |
386 | "2.6.0" }, | |
a2a69d58 | 387 | { "PSUBSCRIBE", |
3c413d59 | 388 | "pattern [pattern ...]", |
50d0e82d | 389 | "Listen for messages published to channels matching the given patterns", |
a2a69d58 | 390 | 6, |
3c413d59 | 391 | "2.0.0" }, |
392 | { "PTTL", | |
393 | "key", | |
394 | "Get the time to live for a key in milliseconds", | |
395 | 0, | |
396 | "2.6.0" }, | |
a2a69d58 | 397 | { "PUBLISH", |
50d0e82d PN |
398 | "channel message", |
399 | "Post a message to a channel", | |
a2a69d58 | 400 | 6, |
3c413d59 | 401 | "2.0.0" }, |
a2a69d58 | 402 | { "PUNSUBSCRIBE", |
50d0e82d PN |
403 | "[pattern [pattern ...]]", |
404 | "Stop listening for messages posted to channels matching the given patterns", | |
a2a69d58 | 405 | 6, |
3c413d59 | 406 | "2.0.0" }, |
a2a69d58 | 407 | { "QUIT", |
50d0e82d PN |
408 | "-", |
409 | "Close the connection", | |
a2a69d58 | 410 | 8, |
3c413d59 | 411 | "1.0.0" }, |
a2a69d58 | 412 | { "RANDOMKEY", |
50d0e82d PN |
413 | "-", |
414 | "Return a random key from the keyspace", | |
a2a69d58 | 415 | 0, |
3c413d59 | 416 | "1.0.0" }, |
a2a69d58 | 417 | { "RENAME", |
6418b4c7 | 418 | "key newkey", |
50d0e82d | 419 | "Rename a key", |
a2a69d58 | 420 | 0, |
3c413d59 | 421 | "1.0.0" }, |
a2a69d58 | 422 | { "RENAMENX", |
6418b4c7 | 423 | "key newkey", |
50d0e82d | 424 | "Rename a key, only if the new key does not exist", |
a2a69d58 | 425 | 0, |
3c413d59 | 426 | "1.0.0" }, |
427 | { "RESTORE", | |
428 | "key ttl serialized value", | |
429 | "Create a key using the provided serialized value, previously obtained using DUMP.", | |
430 | 0, | |
431 | "2.6.0" }, | |
a2a69d58 | 432 | { "RPOP", |
50d0e82d PN |
433 | "key", |
434 | "Remove and get the last element in a list", | |
a2a69d58 | 435 | 2, |
3c413d59 | 436 | "1.0.0" }, |
a2a69d58 | 437 | { "RPOPLPUSH", |
50d0e82d PN |
438 | "source destination", |
439 | "Remove the last element in a list, append it to another list and return it", | |
a2a69d58 | 440 | 2, |
3c413d59 | 441 | "1.2.0" }, |
a2a69d58 | 442 | { "RPUSH", |
3c413d59 | 443 | "key value [value ...]", |
444 | "Append one or multiple values to a list", | |
a2a69d58 | 445 | 2, |
3c413d59 | 446 | "1.0.0" }, |
a2a69d58 | 447 | { "RPUSHX", |
50d0e82d PN |
448 | "key value", |
449 | "Append a value to a list, only if the list exists", | |
a2a69d58 | 450 | 2, |
3c413d59 | 451 | "2.2.0" }, |
a2a69d58 | 452 | { "SADD", |
3c413d59 | 453 | "key member [member ...]", |
454 | "Add one or more members to a set", | |
a2a69d58 | 455 | 3, |
3c413d59 | 456 | "1.0.0" }, |
a2a69d58 | 457 | { "SAVE", |
50d0e82d PN |
458 | "-", |
459 | "Synchronously save the dataset to disk", | |
a2a69d58 | 460 | 9, |
3c413d59 | 461 | "1.0.0" }, |
a2a69d58 | 462 | { "SCARD", |
50d0e82d PN |
463 | "key", |
464 | "Get the number of members in a set", | |
a2a69d58 | 465 | 3, |
3c413d59 | 466 | "1.0.0" }, |
467 | { "SCRIPT EXISTS", | |
468 | "script [script ...]", | |
469 | "Check existence of scripts in the script cache.", | |
470 | 10, | |
471 | "2.6.0" }, | |
472 | { "SCRIPT FLUSH", | |
473 | "-", | |
474 | "Remove all the scripts from the script cache.", | |
475 | 10, | |
476 | "2.6.0" }, | |
477 | { "SCRIPT KILL", | |
478 | "-", | |
479 | "Kill the script currently in execution.", | |
480 | 10, | |
481 | "2.6.0" }, | |
482 | { "SCRIPT LOAD", | |
483 | "script", | |
484 | "Load the specified Lua script into the script cache.", | |
485 | 10, | |
486 | "2.6.0" }, | |
a2a69d58 | 487 | { "SDIFF", |
50d0e82d PN |
488 | "key [key ...]", |
489 | "Subtract multiple sets", | |
a2a69d58 | 490 | 3, |
3c413d59 | 491 | "1.0.0" }, |
a2a69d58 | 492 | { "SDIFFSTORE", |
50d0e82d PN |
493 | "destination key [key ...]", |
494 | "Subtract multiple sets and store the resulting set in a key", | |
a2a69d58 | 495 | 3, |
3c413d59 | 496 | "1.0.0" }, |
a2a69d58 | 497 | { "SELECT", |
50d0e82d PN |
498 | "index", |
499 | "Change the selected database for the current connection", | |
a2a69d58 | 500 | 8, |
3c413d59 | 501 | "1.0.0" }, |
a2a69d58 | 502 | { "SET", |
50d0e82d PN |
503 | "key value", |
504 | "Set the string value of a key", | |
a2a69d58 | 505 | 1, |
3c413d59 | 506 | "1.0.0" }, |
6418b4c7 | 507 | { "SETBIT", |
508 | "key offset value", | |
509 | "Sets or clears the bit at offset in the string value stored at key", | |
510 | 1, | |
3c413d59 | 511 | "2.2.0" }, |
a2a69d58 | 512 | { "SETEX", |
6418b4c7 | 513 | "key seconds value", |
50d0e82d | 514 | "Set the value and expiration of a key", |
a2a69d58 | 515 | 1, |
3c413d59 | 516 | "2.0.0" }, |
a2a69d58 | 517 | { "SETNX", |
50d0e82d PN |
518 | "key value", |
519 | "Set the value of a key, only if the key does not exist", | |
a2a69d58 | 520 | 1, |
3c413d59 | 521 | "1.0.0" }, |
6418b4c7 | 522 | { "SETRANGE", |
523 | "key offset value", | |
524 | "Overwrite part of a string at key starting at the specified offset", | |
525 | 1, | |
3c413d59 | 526 | "2.2.0" }, |
a2a69d58 | 527 | { "SHUTDOWN", |
3c413d59 | 528 | "[NOSAVE] [SAVE]", |
50d0e82d | 529 | "Synchronously save the dataset to disk and then shut down the server", |
a2a69d58 | 530 | 9, |
3c413d59 | 531 | "1.0.0" }, |
a2a69d58 | 532 | { "SINTER", |
50d0e82d PN |
533 | "key [key ...]", |
534 | "Intersect multiple sets", | |
a2a69d58 | 535 | 3, |
3c413d59 | 536 | "1.0.0" }, |
a2a69d58 | 537 | { "SINTERSTORE", |
50d0e82d PN |
538 | "destination key [key ...]", |
539 | "Intersect multiple sets and store the resulting set in a key", | |
a2a69d58 | 540 | 3, |
3c413d59 | 541 | "1.0.0" }, |
a2a69d58 | 542 | { "SISMEMBER", |
50d0e82d PN |
543 | "key member", |
544 | "Determine if a given value is a member of a set", | |
a2a69d58 | 545 | 3, |
3c413d59 | 546 | "1.0.0" }, |
a2a69d58 | 547 | { "SLAVEOF", |
50d0e82d PN |
548 | "host port", |
549 | "Make the server a slave of another instance, or promote it as master", | |
a2a69d58 | 550 | 9, |
3c413d59 | 551 | "1.0.0" }, |
552 | { "SLOWLOG", | |
553 | "subcommand [argument]", | |
554 | "Manages the Redis slow queries log", | |
555 | 9, | |
556 | "2.2.12" }, | |
a2a69d58 | 557 | { "SMEMBERS", |
50d0e82d PN |
558 | "key", |
559 | "Get all the members in a set", | |
a2a69d58 | 560 | 3, |
3c413d59 | 561 | "1.0.0" }, |
a2a69d58 | 562 | { "SMOVE", |
50d0e82d PN |
563 | "source destination member", |
564 | "Move a member from one set to another", | |
a2a69d58 | 565 | 3, |
3c413d59 | 566 | "1.0.0" }, |
a2a69d58 | 567 | { "SORT", |
6418b4c7 | 568 | "key [BY pattern] [LIMIT offset count] [GET pattern [GET pattern ...]] [ASC|DESC] [ALPHA] [STORE destination]", |
50d0e82d | 569 | "Sort the elements in a list, set or sorted set", |
a2a69d58 | 570 | 0, |
3c413d59 | 571 | "1.0.0" }, |
a2a69d58 | 572 | { "SPOP", |
50d0e82d PN |
573 | "key", |
574 | "Remove and return a random member from a set", | |
a2a69d58 | 575 | 3, |
3c413d59 | 576 | "1.0.0" }, |
a2a69d58 | 577 | { "SRANDMEMBER", |
50d0e82d PN |
578 | "key", |
579 | "Get a random member from a set", | |
a2a69d58 | 580 | 3, |
3c413d59 | 581 | "1.0.0" }, |
a2a69d58 | 582 | { "SREM", |
3c413d59 | 583 | "key member [member ...]", |
584 | "Remove one or more members from a set", | |
a2a69d58 | 585 | 3, |
3c413d59 | 586 | "1.0.0" }, |
a2a69d58 | 587 | { "STRLEN", |
50d0e82d PN |
588 | "key", |
589 | "Get the length of the value stored in a key", | |
a2a69d58 | 590 | 1, |
3c413d59 | 591 | "2.2.0" }, |
a2a69d58 | 592 | { "SUBSCRIBE", |
3c413d59 | 593 | "channel [channel ...]", |
50d0e82d | 594 | "Listen for messages published to the given channels", |
a2a69d58 | 595 | 6, |
3c413d59 | 596 | "2.0.0" }, |
a2a69d58 | 597 | { "SUNION", |
50d0e82d PN |
598 | "key [key ...]", |
599 | "Add multiple sets", | |
a2a69d58 | 600 | 3, |
3c413d59 | 601 | "1.0.0" }, |
a2a69d58 | 602 | { "SUNIONSTORE", |
50d0e82d PN |
603 | "destination key [key ...]", |
604 | "Add multiple sets and store the resulting set in a key", | |
a2a69d58 | 605 | 3, |
3c413d59 | 606 | "1.0.0" }, |
a2a69d58 | 607 | { "SYNC", |
50d0e82d PN |
608 | "-", |
609 | "Internal command used for replication", | |
a2a69d58 | 610 | 9, |
3c413d59 | 611 | "1.0.0" }, |
612 | { "TIME", | |
613 | "-", | |
614 | "Return the current server time", | |
615 | 9, | |
616 | "2.6.0" }, | |
a2a69d58 | 617 | { "TTL", |
50d0e82d PN |
618 | "key", |
619 | "Get the time to live for a key", | |
a2a69d58 | 620 | 0, |
3c413d59 | 621 | "1.0.0" }, |
a2a69d58 | 622 | { "TYPE", |
50d0e82d PN |
623 | "key", |
624 | "Determine the type stored at key", | |
a2a69d58 | 625 | 0, |
3c413d59 | 626 | "1.0.0" }, |
a2a69d58 | 627 | { "UNSUBSCRIBE", |
50d0e82d PN |
628 | "[channel [channel ...]]", |
629 | "Stop listening for messages posted to the given channels", | |
a2a69d58 | 630 | 6, |
3c413d59 | 631 | "2.0.0" }, |
a2a69d58 | 632 | { "UNWATCH", |
50d0e82d PN |
633 | "-", |
634 | "Forget about all watched keys", | |
a2a69d58 | 635 | 7, |
3c413d59 | 636 | "2.2.0" }, |
a2a69d58 | 637 | { "WATCH", |
50d0e82d PN |
638 | "key [key ...]", |
639 | "Watch the given keys to determine execution of the MULTI/EXEC block", | |
a2a69d58 | 640 | 7, |
3c413d59 | 641 | "2.2.0" }, |
a2a69d58 | 642 | { "ZADD", |
3c413d59 | 643 | "key score member [score] [member]", |
644 | "Add one or more members to a sorted set, or update its score if it already exists", | |
a2a69d58 | 645 | 4, |
3c413d59 | 646 | "1.2.0" }, |
a2a69d58 | 647 | { "ZCARD", |
50d0e82d PN |
648 | "key", |
649 | "Get the number of members in a sorted set", | |
a2a69d58 | 650 | 4, |
3c413d59 | 651 | "1.2.0" }, |
a2a69d58 | 652 | { "ZCOUNT", |
50d0e82d PN |
653 | "key min max", |
654 | "Count the members in a sorted set with scores within the given values", | |
a2a69d58 | 655 | 4, |
3c413d59 | 656 | "2.0.0" }, |
a2a69d58 | 657 | { "ZINCRBY", |
50d0e82d PN |
658 | "key increment member", |
659 | "Increment the score of a member in a sorted set", | |
a2a69d58 | 660 | 4, |
3c413d59 | 661 | "1.2.0" }, |
a2a69d58 | 662 | { "ZINTERSTORE", |
6418b4c7 | 663 | "destination numkeys key [key ...] [WEIGHTS weight] [AGGREGATE SUM|MIN|MAX]", |
50d0e82d | 664 | "Intersect multiple sorted sets and store the resulting sorted set in a new key", |
a2a69d58 | 665 | 4, |
3c413d59 | 666 | "2.0.0" }, |
a2a69d58 | 667 | { "ZRANGE", |
6418b4c7 | 668 | "key start stop [WITHSCORES]", |
50d0e82d | 669 | "Return a range of members in a sorted set, by index", |
a2a69d58 | 670 | 4, |
3c413d59 | 671 | "1.2.0" }, |
a2a69d58 | 672 | { "ZRANGEBYSCORE", |
6418b4c7 | 673 | "key min max [WITHSCORES] [LIMIT offset count]", |
50d0e82d | 674 | "Return a range of members in a sorted set, by score", |
a2a69d58 | 675 | 4, |
3c413d59 | 676 | "1.0.5" }, |
a2a69d58 | 677 | { "ZRANK", |
50d0e82d PN |
678 | "key member", |
679 | "Determine the index of a member in a sorted set", | |
a2a69d58 | 680 | 4, |
3c413d59 | 681 | "2.0.0" }, |
a2a69d58 | 682 | { "ZREM", |
3c413d59 | 683 | "key member [member ...]", |
684 | "Remove one or more members from a sorted set", | |
a2a69d58 | 685 | 4, |
3c413d59 | 686 | "1.2.0" }, |
a2a69d58 | 687 | { "ZREMRANGEBYRANK", |
50d0e82d PN |
688 | "key start stop", |
689 | "Remove all members in a sorted set within the given indexes", | |
a2a69d58 | 690 | 4, |
3c413d59 | 691 | "2.0.0" }, |
a2a69d58 | 692 | { "ZREMRANGEBYSCORE", |
50d0e82d PN |
693 | "key min max", |
694 | "Remove all members in a sorted set within the given scores", | |
a2a69d58 | 695 | 4, |
3c413d59 | 696 | "1.2.0" }, |
a2a69d58 | 697 | { "ZREVRANGE", |
6418b4c7 | 698 | "key start stop [WITHSCORES]", |
50d0e82d | 699 | "Return a range of members in a sorted set, by index, with scores ordered from high to low", |
a2a69d58 | 700 | 4, |
3c413d59 | 701 | "1.2.0" }, |
6418b4c7 | 702 | { "ZREVRANGEBYSCORE", |
703 | "key max min [WITHSCORES] [LIMIT offset count]", | |
704 | "Return a range of members in a sorted set, by score, with scores ordered from high to low", | |
705 | 4, | |
3c413d59 | 706 | "2.2.0" }, |
a2a69d58 | 707 | { "ZREVRANK", |
50d0e82d PN |
708 | "key member", |
709 | "Determine the index of a member in a sorted set, with scores ordered from high to low", | |
a2a69d58 | 710 | 4, |
3c413d59 | 711 | "2.0.0" }, |
a2a69d58 | 712 | { "ZSCORE", |
50d0e82d PN |
713 | "key member", |
714 | "Get the score associated with the given member in a sorted set", | |
a2a69d58 | 715 | 4, |
3c413d59 | 716 | "1.2.0" }, |
a2a69d58 | 717 | { "ZUNIONSTORE", |
6418b4c7 | 718 | "destination numkeys key [key ...] [WEIGHTS weight] [AGGREGATE SUM|MIN|MAX]", |
50d0e82d | 719 | "Add multiple sorted sets and store the resulting sorted set in a new key", |
a2a69d58 | 720 | 4, |
3c413d59 | 721 | "2.0.0" } |
5397f2b5 TH |
722 | }; |
723 | ||
a2a69d58 | 724 | #endif |