add some commands doc

This commit is contained in:
siddontang 2015-02-06 09:20:03 +08:00
parent b94a604f7a
commit 7235cb8933
2 changed files with 64 additions and 1 deletions

View File

@ -1,7 +1,8 @@
//This file was generated by .tools/generate_commands.py on Tue Feb 03 2015 14:21:53 +0800 //This file was generated by .tools/generate_commands.py on Fri Feb 06 2015 09:15:18 +0800
package main package main
var helpCommands = [][]string{ var helpCommands = [][]string{
{"APPEND", "key value", "KV"},
{"BCOUNT", "key [start end]", "Bitmap"}, {"BCOUNT", "key [start end]", "Bitmap"},
{"BDELETE", "key", "ZSet"}, {"BDELETE", "key", "ZSet"},
{"BEGIN", "-", "Transaction"}, {"BEGIN", "-", "Transaction"},
@ -9,6 +10,9 @@ var helpCommands = [][]string{
{"BEXPIREAT", "key timestamp", "Bitmap"}, {"BEXPIREAT", "key timestamp", "Bitmap"},
{"BGET", "key", "Bitmap"}, {"BGET", "key", "Bitmap"},
{"BGETBIT", "key offset", "Bitmap"}, {"BGETBIT", "key offset", "Bitmap"},
{"BITCOUNT", "key [start] [end]", "KV"},
{"BITOP", "operation destkey key [key ...]", "KV"},
{"BITPOS", "key bit [start] [end]", "KV"},
{"BLPOP", "key [key ...] timeout", "List"}, {"BLPOP", "key [key ...] timeout", "List"},
{"BMSETBIT", "key offset value [offset value ...]", "Bitmap"}, {"BMSETBIT", "key offset value [offset value ...]", "Bitmap"},
{"BOPT", "operation destkey key [key ...]", "Bitmap"}, {"BOPT", "operation destkey key [key ...]", "Bitmap"},
@ -34,6 +38,8 @@ var helpCommands = [][]string{
{"FLUSHDB", "-", "Server"}, {"FLUSHDB", "-", "Server"},
{"FULLSYNC", "[NEW]", "Replication"}, {"FULLSYNC", "[NEW]", "Replication"},
{"GET", "key", "KV"}, {"GET", "key", "KV"},
{"GETBIT", "key offset", "KV"},
{"GETRANGE", "key start end", "KV"},
{"GETSET", " key value", "KV"}, {"GETSET", " key value", "KV"},
{"HCLEAR", "key", "Hash"}, {"HCLEAR", "key", "Hash"},
{"HDEL", "key field [field ...]", "Hash"}, {"HDEL", "key field [field ...]", "Hash"},
@ -92,8 +98,10 @@ var helpCommands = [][]string{
{"SDUMP", "key", "Set"}, {"SDUMP", "key", "Set"},
{"SELECT", "index", "Server"}, {"SELECT", "index", "Server"},
{"SET", "key value", "KV"}, {"SET", "key value", "KV"},
{"SETBIT", "key offset value", "KV"},
{"SETEX", "key seconds value", "KV"}, {"SETEX", "key seconds value", "KV"},
{"SETNX", "key value", "KV"}, {"SETNX", "key value", "KV"},
{"SETRANGE", "key offset value", "KV"},
{"SEXPIRE", "key seconds", "Set"}, {"SEXPIRE", "key seconds", "Set"},
{"SEXPIREAT", "key timestamp", "Set"}, {"SEXPIREAT", "key timestamp", "Set"},
{"SINTER", "key [key ...]", "Set"}, {"SINTER", "key [key ...]", "Set"},
@ -104,6 +112,7 @@ var helpCommands = [][]string{
{"SMEMBERS", "key", "Set"}, {"SMEMBERS", "key", "Set"},
{"SPERSIST", "key", "Set"}, {"SPERSIST", "key", "Set"},
{"SREM", "key member [member ...]", "Set"}, {"SREM", "key member [member ...]", "Set"},
{"STRLEN", "key", "KV"},
{"STTL", "key", "Set"}, {"STTL", "key", "Set"},
{"SUNION", "key [key ...]", "Set"}, {"SUNION", "key [key ...]", "Set"},
{"SUNIONSTORE", "destination key [key ...]", "Set"}, {"SUNIONSTORE", "destination key [key ...]", "Set"},

View File

@ -794,5 +794,59 @@
"arguments" : "-", "arguments" : "-",
"group" : "Server", "group" : "Server",
"readonly" : true "readonly" : true
},
"APPEND": {
"arguments" : "key value",
"group" : "KV",
"readonly" : false
},
"GETRANGE": {
"arguments" : "key start end",
"group" : "KV",
"readonly" : true
},
"SETRANGE": {
"arguments" : "key offset value",
"group" : "KV",
"readonly" : false
},
"STRLEN": {
"arguments" : "key",
"group" : "KV",
"readonly" : true
},
"BITCOUNT": {
"arguments" : "key [start] [end]",
"group" : "KV",
"readonly" : true
},
"BITOP": {
"arguments" : "operation destkey key [key ...]",
"group" : "KV",
"readonly" : false
},
"BITPOS": {
"arguments" : "key bit [start] [end]",
"group" : "KV",
"readonly" : true
},
"GETBIT": {
"arguments" : "key offset",
"group" : "KV",
"readonly" : true
},
"SETBIT": {
"arguments" : "key offset value",
"group" : "KV",
"readonly" : false
} }
} }