forked from mirror/ledisdb
update doc
This commit is contained in:
parent
91cdeeac16
commit
62219bbe74
|
@ -1,4 +1,4 @@
|
||||||
//This file was generated by .tools/generate_commands.py on Wed Mar 04 2015 09:31:59 +0800
|
//This file was generated by .tools/generate_commands.py on Thu Mar 05 2015 15:42:49 +0800
|
||||||
package main
|
package main
|
||||||
|
|
||||||
var helpCommands = [][]string{
|
var helpCommands = [][]string{
|
||||||
|
@ -106,10 +106,13 @@ var helpCommands = [][]string{
|
||||||
{"SYNC", "logid", "Replication"},
|
{"SYNC", "logid", "Replication"},
|
||||||
{"TIME", "-", "Server"},
|
{"TIME", "-", "Server"},
|
||||||
{"TTL", "key", "KV"},
|
{"TTL", "key", "KV"},
|
||||||
{"XHSCAN", "key cursor [MATCH match] [COUNT count]", "Hash"},
|
{"XHSCAN", "key cursor [MATCH match] [COUNT count] [ASC|DESC]", "Hash"},
|
||||||
{"XSCAN", "type cursor [MATCH match] [COUNT count]", "Server"},
|
{"XLSORT", "key [BY pattern] [LIMIT offset count] [GET pattern [GET pattern ...]] [ASC|DESC] [ALPHA] [STORE destination]", "List"},
|
||||||
{"XSSCAN", "key cursor [MATCH match] [COUNT count]", "Set"},
|
{"XSCAN", "type cursor [MATCH match] [COUNT count] [ASC|DESC]", "Server"},
|
||||||
{"XZSCAN", "key cursor [MATCH match] [COUNT count]", "ZSet"},
|
{"XSSCAN", "key cursor [MATCH match] [COUNT count] [ASC|DESC]", "Set"},
|
||||||
|
{"XSSORT", "key [BY pattern] [LIMIT offset count] [GET pattern [GET pattern ...]] [ASC|DESC] [ALPHA] [STORE destination]", "Set"},
|
||||||
|
{"XZSCAN", "key cursor [MATCH match] [COUNT count] [ASC|DESC]", "ZSet"},
|
||||||
|
{"XZSORT", "key [BY pattern] [LIMIT offset count] [GET pattern [GET pattern ...]] [ASC|DESC] [ALPHA] [STORE destination]", "ZSet"},
|
||||||
{"ZADD", "key score member [score member ...]", "ZSet"},
|
{"ZADD", "key score member [score member ...]", "ZSet"},
|
||||||
{"ZCARD", "key", "ZSet"},
|
{"ZCARD", "key", "ZSet"},
|
||||||
{"ZCLEAR", "key", "ZSet"},
|
{"ZCLEAR", "key", "ZSet"},
|
||||||
|
@ -119,7 +122,7 @@ var helpCommands = [][]string{
|
||||||
{"ZEXPIREAT", "key timestamp", "ZSet"},
|
{"ZEXPIREAT", "key timestamp", "ZSet"},
|
||||||
{"ZINCRBY", "key increment member", "ZSet"},
|
{"ZINCRBY", "key increment member", "ZSet"},
|
||||||
{"ZINTERSTORE", "destkey numkeys key [key ...] [WEIGHTS weight [weight ...]] [AGGREGATE SUM|MIN|MAX]", "ZSet"},
|
{"ZINTERSTORE", "destkey numkeys key [key ...] [WEIGHTS weight [weight ...]] [AGGREGATE SUM|MIN|MAX]", "ZSet"},
|
||||||
{"ZKEYEXISTS", "ZSet", "Hash"},
|
{"ZKEYEXISTS", "key", "ZSet"},
|
||||||
{"ZLEXCOUNT", "key min max", "ZSet"},
|
{"ZLEXCOUNT", "key min max", "ZSet"},
|
||||||
{"ZMCLEAR", "key [key ...]", "ZSet"},
|
{"ZMCLEAR", "key [key ...]", "ZSet"},
|
||||||
{"ZPERSIST", "key", "ZSet"},
|
{"ZPERSIST", "key", "ZSet"},
|
||||||
|
|
|
@ -604,25 +604,25 @@
|
||||||
},
|
},
|
||||||
|
|
||||||
"XSCAN": {
|
"XSCAN": {
|
||||||
"arguments": "type cursor [MATCH match] [COUNT count]",
|
"arguments": "type cursor [MATCH match] [COUNT count] [ASC|DESC]",
|
||||||
"group": "Server",
|
"group": "Server",
|
||||||
"readonly": true
|
"readonly": true
|
||||||
},
|
},
|
||||||
|
|
||||||
"XHSCAN": {
|
"XHSCAN": {
|
||||||
"arguments": "key cursor [MATCH match] [COUNT count]",
|
"arguments": "key cursor [MATCH match] [COUNT count] [ASC|DESC]",
|
||||||
"group": "Hash",
|
"group": "Hash",
|
||||||
"readonly": true
|
"readonly": true
|
||||||
},
|
},
|
||||||
|
|
||||||
"XSSCAN": {
|
"XSSCAN": {
|
||||||
"arguments": "key cursor [MATCH match] [COUNT count]",
|
"arguments": "key cursor [MATCH match] [COUNT count] [ASC|DESC]",
|
||||||
"group": "Set",
|
"group": "Set",
|
||||||
"readonly": true
|
"readonly": true
|
||||||
},
|
},
|
||||||
|
|
||||||
"XZSCAN": {
|
"XZSCAN": {
|
||||||
"arguments": "key cursor [MATCH match] [COUNT count]",
|
"arguments": "key cursor [MATCH match] [COUNT count] [ASC|DESC]",
|
||||||
"group": "ZSet",
|
"group": "ZSet",
|
||||||
"readonly": true
|
"readonly": true
|
||||||
},
|
},
|
||||||
|
@ -712,8 +712,26 @@
|
||||||
},
|
},
|
||||||
|
|
||||||
"ZKEYEXISTS": {
|
"ZKEYEXISTS": {
|
||||||
"arguments" : "ZSet",
|
"arguments" : "key",
|
||||||
"group" : "Hash",
|
"group" : "ZSet",
|
||||||
"readonly" : true
|
"readonly" : true
|
||||||
|
},
|
||||||
|
|
||||||
|
"XLSORT": {
|
||||||
|
"arguments" : "key [BY pattern] [LIMIT offset count] [GET pattern [GET pattern ...]] [ASC|DESC] [ALPHA] [STORE destination]",
|
||||||
|
"group" : "List",
|
||||||
|
"readonly" : false
|
||||||
|
},
|
||||||
|
|
||||||
|
"XSSORT": {
|
||||||
|
"arguments" : "key [BY pattern] [LIMIT offset count] [GET pattern [GET pattern ...]] [ASC|DESC] [ALPHA] [STORE destination]",
|
||||||
|
"group" : "Set",
|
||||||
|
"readonly" : false
|
||||||
|
},
|
||||||
|
|
||||||
|
"XZSORT": {
|
||||||
|
"arguments" : "key [BY pattern] [LIMIT offset count] [GET pattern [GET pattern ...]] [ASC|DESC] [ALPHA] [STORE destination]",
|
||||||
|
"group" : "ZSet",
|
||||||
|
"readonly" : false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -125,10 +125,14 @@ Most of the Ledisdb's commands are the same as Redis's, you can see the redis co
|
||||||
- [ZDUMP key](#zdump-key)
|
- [ZDUMP key](#zdump-key)
|
||||||
- [ZKEYEXISTS key](#zkeyexists-key)
|
- [ZKEYEXISTS key](#zkeyexists-key)
|
||||||
- [Scan](#scan)
|
- [Scan](#scan)
|
||||||
- [XSCAN type cursor [MATCH match] [COUNT count]](#xscan-type-cursor-match-match-count-count)
|
- [XSCAN type cursor [MATCH match] [COUNT count] [ASC|DESC]](#xscan-type-cursor-match-match-count-count-asc|desc)
|
||||||
- [XHSCAN key cursor [MATCH match] [COUNT count]](#xhscan-key-cursor-match-match-count-count)
|
- [XHSCAN key cursor [MATCH match] [COUNT count] [ASC|DESC]](#xhscan-key-cursor-match-match-count-count-asc|desc)
|
||||||
- [XSSCAN key cursor [MATCH match] [COUNT count]](#xsscan-key-cursor-match-match-count-count)
|
- [XSSCAN key cursor [MATCH match] [COUNT count] [ASC|DESC]](#xsscan-key-cursor-match-match-count-count-asc|desc)
|
||||||
- [XZSCAN key cursor [MATCH match] [COUNT count]](#xzscan-key-cursor-match-match-count-count)
|
- [XZSCAN key cursor [MATCH match] [COUNT count] [ASC|DESC]](#xzscan-key-cursor-match-match-count-count-asc|desc)
|
||||||
|
- [Sort](#sort)
|
||||||
|
- [XLSORT key [BY pattern] [LIMIT offset count] [GET pattern [GET pattern ...]] [ASC|DESC] [ALPHA] [STORE destination]](#xlsort-key-by-pattern-limit-offset-count-get-pattern-get-pattern--asc|desc-alpha-store-destination)
|
||||||
|
- [XSSORT key [BY pattern] [LIMIT offset count] [GET pattern [GET pattern ...]] [ASC|DESC] [ALPHA] [STORE destination]](#xssort-key-by-pattern-limit-offset-count-get-pattern-get-pattern--asc|desc-alpha-store-destination)
|
||||||
|
- [XZSORT key [BY pattern] [LIMIT offset count] [GET pattern [GET pattern ...]] [ASC|DESC] [ALPHA] [STORE destination]](#xzsort-key-by-pattern-limit-offset-count-get-pattern-get-pattern--asc|desc-alpha-store-destination)
|
||||||
- [Replication](#replication)
|
- [Replication](#replication)
|
||||||
- [SLAVEOF host port [RESTART] [READONLY]](#slaveof-host-port-restart-readonly)
|
- [SLAVEOF host port [RESTART] [READONLY]](#slaveof-host-port-restart-readonly)
|
||||||
- [FULLSYNC [NEW]](#fullsync-new)
|
- [FULLSYNC [NEW]](#fullsync-new)
|
||||||
|
@ -2371,7 +2375,7 @@ Check key exists for zset data, like [EXISTS key](#exists-key)
|
||||||
|
|
||||||
## Scan
|
## Scan
|
||||||
|
|
||||||
### XSCAN type cursor [MATCH match] [COUNT count]
|
### XSCAN type cursor [MATCH match] [COUNT count] [ASC|DESC]
|
||||||
|
|
||||||
Iterate data type keys incrementally.
|
Iterate data type keys incrementally.
|
||||||
|
|
||||||
|
@ -2379,6 +2383,7 @@ Type is "KV", "LIST", "HASH", "SET" or "ZSET".
|
||||||
Cursor is the start for the current iteration.
|
Cursor is the start for the current iteration.
|
||||||
Match is the regexp for checking matched key.
|
Match is the regexp for checking matched key.
|
||||||
Count is the maximum retrieved elememts number, default is 10.
|
Count is the maximum retrieved elememts number, default is 10.
|
||||||
|
DESC for reverse iterator.
|
||||||
|
|
||||||
**Return value**
|
**Return value**
|
||||||
|
|
||||||
|
@ -2410,20 +2415,33 @@ ledis>xscan "KV" "c" count 1
|
||||||
2) []
|
2) []
|
||||||
```
|
```
|
||||||
|
|
||||||
### XHSCAN key cursor [MATCH match] [COUNT count]
|
### XHSCAN key cursor [MATCH match] [COUNT count] [ASC|DESC]
|
||||||
|
|
||||||
Same like [XSCAN type cursor [MATCH match] [COUNT count]](#xscan-type-cursor-match-match-count-count), but return array of elements
|
Same like XSCAN, but return array of elements.
|
||||||
contains two elements, a field and a value.
|
contains two elements, a field and a value.
|
||||||
|
|
||||||
### XSSCAN key cursor [MATCH match] [COUNT count]
|
### XSSCAN key cursor [MATCH match] [COUNT count] [ASC|DESC]
|
||||||
|
|
||||||
Same like [XSCAN type cursor [MATCH match] [COUNT count]](#xscan-type-cursor-match-match-count-count)
|
Same like XSCAN.
|
||||||
|
|
||||||
### XZSCAN key cursor [MATCH match] [COUNT count]
|
### XZSCAN key cursor [MATCH match] [COUNT count] [ASC|DESC]
|
||||||
|
|
||||||
Same like [XSCAN type cursor [MATCH match] [COUNT count]](#xscan-type-cursor-match-match-count-count), but return array of elements
|
Same like XSCAN, but return array of elements.
|
||||||
contains two elements, a member and its associated score.
|
contains two elements, a member and its associated score.
|
||||||
|
|
||||||
|
## Sort
|
||||||
|
|
||||||
|
### XLSORT key [BY pattern] [LIMIT offset count] [GET pattern [GET pattern ...]] [ASC|DESC] [ALPHA] [STORE destination]
|
||||||
|
|
||||||
|
Returns or stores the elements contained in the list at key.
|
||||||
|
|
||||||
|
### XSSORT key [BY pattern] [LIMIT offset count] [GET pattern [GET pattern ...]] [ASC|DESC] [ALPHA] [STORE destination]
|
||||||
|
|
||||||
|
Returns or stores the elements contained in the set at key.
|
||||||
|
|
||||||
|
### XZSORT key [BY pattern] [LIMIT offset count] [GET pattern [GET pattern ...]] [ASC|DESC] [ALPHA] [STORE destination]
|
||||||
|
|
||||||
|
Returns or stores the elements contained in the zset at key.
|
||||||
|
|
||||||
## Replication
|
## Replication
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue