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