Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
hanoi2005
redis
提交
6418b4c7
R
redis
项目概览
hanoi2005
/
redis
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
redis
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
6418b4c7
编写于
12月 15, 2010
作者:
A
antirez
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
help.h updated
上级
59aee551
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
43 addition
and
12 deletion
+43
-12
src/help.h
src/help.h
+42
-12
utils/generate-command-help.rb
utils/generate-command-help.rb
+1
-0
未找到文件。
src/help.h
浏览文件 @
6418b4c7
/* Automatically generated by
utils/
generate-command-help.rb, do not edit. */
/* Automatically generated by generate-command-help.rb, do not edit. */
#ifndef __REDIS_HELP_H
#ifndef __REDIS_HELP_H
#define __REDIS_HELP_H
#define __REDIS_HELP_H
...
@@ -53,11 +53,21 @@ struct commandHelp {
...
@@ -53,11 +53,21 @@ struct commandHelp {
"Remove and get the last element in a list, or block until one is available"
,
"Remove and get the last element in a list, or block until one is available"
,
2
,
2
,
"1.3.1"
},
"1.3.1"
},
{
"BRPOPLPUSH"
,
"source destination timeout"
,
"Pop a value from a list, push it to another list and return it; or block until one is available"
,
2
,
"2.1.7"
},
{
"CONFIG GET"
,
{
"CONFIG GET"
,
"parameter"
,
"parameter"
,
"Get the value of a configuration parameter"
,
"Get the value of a configuration parameter"
,
9
,
9
,
"2.0"
},
"2.0"
},
{
"CONFIG RESETSTAT"
,
"-"
,
"Reset the stats returned by INFO"
,
9
,
"2.0"
},
{
"CONFIG SET"
,
{
"CONFIG SET"
,
"parameter value"
,
"parameter value"
,
"Set a configuration parameter to the given value"
,
"Set a configuration parameter to the given value"
,
...
@@ -79,7 +89,7 @@ struct commandHelp {
...
@@ -79,7 +89,7 @@ struct commandHelp {
9
,
9
,
"0.101"
},
"0.101"
},
{
"DECR"
,
{
"DECR"
,
"key
decrement
"
,
"key"
,
"Decrement the integer value of a key by one"
,
"Decrement the integer value of a key by one"
,
1
,
1
,
"0.07"
},
"0.07"
},
...
@@ -138,6 +148,11 @@ struct commandHelp {
...
@@ -138,6 +148,11 @@ struct commandHelp {
"Get the value of a key"
,
"Get the value of a key"
,
1
,
1
,
"0.07"
},
"0.07"
},
{
"GETBIT"
,
"key offset"
,
"Returns the bit value at offset in the string value stored at key"
,
1
,
"2.1.8"
},
{
"GETSET"
,
{
"GETSET"
,
"key value"
,
"key value"
,
"Set the string value of a key and return its old value"
,
"Set the string value of a key and return its old value"
,
...
@@ -344,12 +359,12 @@ struct commandHelp {
...
@@ -344,12 +359,12 @@ struct commandHelp {
0
,
0
,
"0.07"
},
"0.07"
},
{
"RENAME"
,
{
"RENAME"
,
"
old new
"
,
"
key newkey
"
,
"Rename a key"
,
"Rename a key"
,
0
,
0
,
"0.07"
},
"0.07"
},
{
"RENAMENX"
,
{
"RENAMENX"
,
"
old new
"
,
"
key newkey
"
,
"Rename a key, only if the new key does not exist"
,
"Rename a key, only if the new key does not exist"
,
0
,
0
,
"0.07"
},
"0.07"
},
...
@@ -408,8 +423,13 @@ struct commandHelp {
...
@@ -408,8 +423,13 @@ struct commandHelp {
"Set the string value of a key"
,
"Set the string value of a key"
,
1
,
1
,
"0.07"
},
"0.07"
},
{
"SETBIT"
,
"key offset value"
,
"Sets or clears the bit at offset in the string value stored at key"
,
1
,
"2.1.8"
},
{
"SETEX"
,
{
"SETEX"
,
"key
timestamp
value"
,
"key
seconds
value"
,
"Set the value and expiration of a key"
,
"Set the value and expiration of a key"
,
1
,
1
,
"1.3.10"
},
"1.3.10"
},
...
@@ -418,6 +438,11 @@ struct commandHelp {
...
@@ -418,6 +438,11 @@ struct commandHelp {
"Set the value of a key, only if the key does not exist"
,
"Set the value of a key, only if the key does not exist"
,
1
,
1
,
"0.07"
},
"0.07"
},
{
"SETRANGE"
,
"key offset value"
,
"Overwrite part of a string at key starting at the specified offset"
,
1
,
"2.1.8"
},
{
"SHUTDOWN"
,
{
"SHUTDOWN"
,
"-"
,
"-"
,
"Synchronously save the dataset to disk and then shut down the server"
,
"Synchronously save the dataset to disk and then shut down the server"
,
...
@@ -454,7 +479,7 @@ struct commandHelp {
...
@@ -454,7 +479,7 @@ struct commandHelp {
3
,
3
,
"0.091"
},
"0.091"
},
{
"SORT"
,
{
"SORT"
,
"key [BY pattern] [LIMIT
star
t count] [GET pattern [GET pattern ...]] [ASC|DESC] [ALPHA] [STORE destination]"
,
"key [BY pattern] [LIMIT
offse
t count] [GET pattern [GET pattern ...]] [ASC|DESC] [ALPHA] [STORE destination]"
,
"Sort the elements in a list, set or sorted set"
,
"Sort the elements in a list, set or sorted set"
,
0
,
0
,
"0.07"
},
"0.07"
},
...
@@ -484,7 +509,7 @@ struct commandHelp {
...
@@ -484,7 +509,7 @@ struct commandHelp {
6
,
6
,
"1.3.8"
},
"1.3.8"
},
{
"SUBSTR"
,
{
"SUBSTR"
,
"key start
stop
"
,
"key start
end
"
,
"Get a substring of the string stored at a key"
,
"Get a substring of the string stored at a key"
,
1
,
1
,
"1.3.4"
},
"1.3.4"
},
...
@@ -549,17 +574,17 @@ struct commandHelp {
...
@@ -549,17 +574,17 @@ struct commandHelp {
4
,
4
,
"1.1"
},
"1.1"
},
{
"ZINTERSTORE"
,
{
"ZINTERSTORE"
,
"destination key [key ...] [WEIGHTS weight] [AGGREGATE SUM|MIN|MAX]"
,
"destination
numkeys
key [key ...] [WEIGHTS weight] [AGGREGATE SUM|MIN|MAX]"
,
"Intersect multiple sorted sets and store the resulting sorted set in a new key"
,
"Intersect multiple sorted sets and store the resulting sorted set in a new key"
,
4
,
4
,
"1.3.10"
},
"1.3.10"
},
{
"ZRANGE"
,
{
"ZRANGE"
,
"key start stop"
,
"key start stop
[WITHSCORES]
"
,
"Return a range of members in a sorted set, by index"
,
"Return a range of members in a sorted set, by index"
,
4
,
4
,
"1.1"
},
"1.1"
},
{
"ZRANGEBYSCORE"
,
{
"ZRANGEBYSCORE"
,
"key min max"
,
"key min max
[WITHSCORES] [LIMIT offset count]
"
,
"Return a range of members in a sorted set, by score"
,
"Return a range of members in a sorted set, by score"
,
4
,
4
,
"1.050"
},
"1.050"
},
...
@@ -584,10 +609,15 @@ struct commandHelp {
...
@@ -584,10 +609,15 @@ struct commandHelp {
4
,
4
,
"1.1"
},
"1.1"
},
{
"ZREVRANGE"
,
{
"ZREVRANGE"
,
"key start stop"
,
"key start stop
[WITHSCORES]
"
,
"Return a range of members in a sorted set, by index, with scores ordered from high to low"
,
"Return a range of members in a sorted set, by index, with scores ordered from high to low"
,
4
,
4
,
"1.1"
},
"1.1"
},
{
"ZREVRANGEBYSCORE"
,
"key max min [WITHSCORES] [LIMIT offset count]"
,
"Return a range of members in a sorted set, by score, with scores ordered from high to low"
,
4
,
"2.1.6"
},
{
"ZREVRANK"
,
{
"ZREVRANK"
,
"key member"
,
"key member"
,
"Determine the index of a member in a sorted set, with scores ordered from high to low"
,
"Determine the index of a member in a sorted set, with scores ordered from high to low"
,
...
@@ -599,7 +629,7 @@ struct commandHelp {
...
@@ -599,7 +629,7 @@ struct commandHelp {
4
,
4
,
"1.1"
},
"1.1"
},
{
"ZUNIONSTORE"
,
{
"ZUNIONSTORE"
,
"destination key [key ...] [WEIGHTS weight] [AGGREGATE SUM|MIN|MAX]"
,
"destination
numkeys
key [key ...] [WEIGHTS weight] [AGGREGATE SUM|MIN|MAX]"
,
"Add multiple sorted sets and store the resulting sorted set in a new key"
,
"Add multiple sorted sets and store the resulting sorted set in a new key"
,
4
,
4
,
"1.3.10"
}
"1.3.10"
}
...
...
utils/generate-command-help.rb
浏览文件 @
6418b4c7
...
@@ -42,6 +42,7 @@ end
...
@@ -42,6 +42,7 @@ end
def
commands
def
commands
return
@commands
if
@commands
return
@commands
if
@commands
require
"rubygems"
require
"net/http"
require
"net/http"
require
"net/https"
require
"net/https"
require
"json"
require
"json"
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录