Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
7d39c149
Commit
7d39c149
authored
Aug 29, 2018
by
zhaozhao.zz
Browse files
Supplement to PR #4835, just take info/memory/command as random commands
parent
0e21efdb
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/server.c
View file @
7d39c149
...
@@ -254,7 +254,7 @@ struct redisCommand redisCommandTable[] = {
...
@@ -254,7 +254,7 @@ struct redisCommand redisCommandTable[] = {
{
"flushdb"
,
flushdbCommand
,
-
1
,
"w"
,
0
,
NULL
,
0
,
0
,
0
,
0
,
0
},
{
"flushdb"
,
flushdbCommand
,
-
1
,
"w"
,
0
,
NULL
,
0
,
0
,
0
,
0
,
0
},
{
"flushall"
,
flushallCommand
,
-
1
,
"w"
,
0
,
NULL
,
0
,
0
,
0
,
0
,
0
},
{
"flushall"
,
flushallCommand
,
-
1
,
"w"
,
0
,
NULL
,
0
,
0
,
0
,
0
,
0
},
{
"sort"
,
sortCommand
,
-
2
,
"wm"
,
0
,
sortGetKeys
,
1
,
1
,
1
,
0
,
0
},
{
"sort"
,
sortCommand
,
-
2
,
"wm"
,
0
,
sortGetKeys
,
1
,
1
,
1
,
0
,
0
},
{
"info"
,
infoCommand
,
-
1
,
"lt
s
"
,
0
,
NULL
,
0
,
0
,
0
,
0
,
0
},
{
"info"
,
infoCommand
,
-
1
,
"lt
R
"
,
0
,
NULL
,
0
,
0
,
0
,
0
,
0
},
{
"monitor"
,
monitorCommand
,
1
,
"as"
,
0
,
NULL
,
0
,
0
,
0
,
0
,
0
},
{
"monitor"
,
monitorCommand
,
1
,
"as"
,
0
,
NULL
,
0
,
0
,
0
,
0
,
0
},
{
"ttl"
,
ttlCommand
,
2
,
"rFR"
,
0
,
NULL
,
1
,
1
,
1
,
0
,
0
},
{
"ttl"
,
ttlCommand
,
2
,
"rFR"
,
0
,
NULL
,
1
,
1
,
1
,
0
,
0
},
{
"touch"
,
touchCommand
,
-
2
,
"rF"
,
0
,
NULL
,
1
,
1
,
1
,
0
,
0
},
{
"touch"
,
touchCommand
,
-
2
,
"rF"
,
0
,
NULL
,
1
,
1
,
1
,
0
,
0
},
...
@@ -281,7 +281,7 @@ struct redisCommand redisCommandTable[] = {
...
@@ -281,7 +281,7 @@ struct redisCommand redisCommandTable[] = {
{
"readwrite"
,
readwriteCommand
,
1
,
"F"
,
0
,
NULL
,
0
,
0
,
0
,
0
,
0
},
{
"readwrite"
,
readwriteCommand
,
1
,
"F"
,
0
,
NULL
,
0
,
0
,
0
,
0
,
0
},
{
"dump"
,
dumpCommand
,
2
,
"rR"
,
0
,
NULL
,
1
,
1
,
1
,
0
,
0
},
{
"dump"
,
dumpCommand
,
2
,
"rR"
,
0
,
NULL
,
1
,
1
,
1
,
0
,
0
},
{
"object"
,
objectCommand
,
-
2
,
"rR"
,
0
,
NULL
,
2
,
2
,
1
,
0
,
0
},
{
"object"
,
objectCommand
,
-
2
,
"rR"
,
0
,
NULL
,
2
,
2
,
1
,
0
,
0
},
{
"memory"
,
memoryCommand
,
-
2
,
"r
s
"
,
0
,
NULL
,
0
,
0
,
0
,
0
,
0
},
{
"memory"
,
memoryCommand
,
-
2
,
"r
R
"
,
0
,
NULL
,
0
,
0
,
0
,
0
,
0
},
{
"client"
,
clientCommand
,
-
2
,
"as"
,
0
,
NULL
,
0
,
0
,
0
,
0
,
0
},
{
"client"
,
clientCommand
,
-
2
,
"as"
,
0
,
NULL
,
0
,
0
,
0
,
0
,
0
},
{
"eval"
,
evalCommand
,
-
3
,
"s"
,
0
,
evalGetKeys
,
0
,
0
,
0
,
0
,
0
},
{
"eval"
,
evalCommand
,
-
3
,
"s"
,
0
,
evalGetKeys
,
0
,
0
,
0
,
0
,
0
},
{
"evalsha"
,
evalShaCommand
,
-
3
,
"s"
,
0
,
evalGetKeys
,
0
,
0
,
0
,
0
,
0
},
{
"evalsha"
,
evalShaCommand
,
-
3
,
"s"
,
0
,
evalGetKeys
,
0
,
0
,
0
,
0
,
0
},
...
@@ -292,7 +292,7 @@ struct redisCommand redisCommandTable[] = {
...
@@ -292,7 +292,7 @@ struct redisCommand redisCommandTable[] = {
{
"bitcount"
,
bitcountCommand
,
-
2
,
"r"
,
0
,
NULL
,
1
,
1
,
1
,
0
,
0
},
{
"bitcount"
,
bitcountCommand
,
-
2
,
"r"
,
0
,
NULL
,
1
,
1
,
1
,
0
,
0
},
{
"bitpos"
,
bitposCommand
,
-
3
,
"r"
,
0
,
NULL
,
1
,
1
,
1
,
0
,
0
},
{
"bitpos"
,
bitposCommand
,
-
3
,
"r"
,
0
,
NULL
,
1
,
1
,
1
,
0
,
0
},
{
"wait"
,
waitCommand
,
3
,
"s"
,
0
,
NULL
,
0
,
0
,
0
,
0
,
0
},
{
"wait"
,
waitCommand
,
3
,
"s"
,
0
,
NULL
,
0
,
0
,
0
,
0
,
0
},
{
"command"
,
commandCommand
,
0
,
"lt
s
"
,
0
,
NULL
,
0
,
0
,
0
,
0
,
0
},
{
"command"
,
commandCommand
,
0
,
"lt
R
"
,
0
,
NULL
,
0
,
0
,
0
,
0
,
0
},
{
"geoadd"
,
geoaddCommand
,
-
5
,
"wm"
,
0
,
NULL
,
1
,
1
,
1
,
0
,
0
},
{
"geoadd"
,
geoaddCommand
,
-
5
,
"wm"
,
0
,
NULL
,
1
,
1
,
1
,
0
,
0
},
{
"georadius"
,
georadiusCommand
,
-
6
,
"w"
,
0
,
georadiusGetKeys
,
1
,
1
,
1
,
0
,
0
},
{
"georadius"
,
georadiusCommand
,
-
6
,
"w"
,
0
,
georadiusGetKeys
,
1
,
1
,
1
,
0
,
0
},
{
"georadius_ro"
,
georadiusroCommand
,
-
6
,
"r"
,
0
,
georadiusGetKeys
,
1
,
1
,
1
,
0
,
0
},
{
"georadius_ro"
,
georadiusroCommand
,
-
6
,
"r"
,
0
,
georadiusGetKeys
,
1
,
1
,
1
,
0
,
0
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment