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
f36eac9f
Unverified
Commit
f36eac9f
authored
Apr 28, 2022
by
Wen Hui
Committed by
GitHub
Apr 28, 2022
Browse files
Update the comments of commands introduced or updated in redis 7.0 (#10659)
parent
89772ed8
Changes
4
Hide whitespace changes
Inline
Side-by-side
src/expire.c
View file @
f36eac9f
...
@@ -662,22 +662,22 @@ void expireGenericCommand(client *c, long long basetime, int unit) {
...
@@ -662,22 +662,22 @@ void expireGenericCommand(client *c, long long basetime, int unit) {
}
}
}
}
/* EXPIRE key seconds */
/* EXPIRE key seconds
[ NX | XX | GT | LT]
*/
void
expireCommand
(
client
*
c
)
{
void
expireCommand
(
client
*
c
)
{
expireGenericCommand
(
c
,
mstime
(),
UNIT_SECONDS
);
expireGenericCommand
(
c
,
mstime
(),
UNIT_SECONDS
);
}
}
/* EXPIREAT key
time
*/
/* EXPIREAT key
unix-time-seconds [ NX | XX | GT | LT]
*/
void
expireatCommand
(
client
*
c
)
{
void
expireatCommand
(
client
*
c
)
{
expireGenericCommand
(
c
,
0
,
UNIT_SECONDS
);
expireGenericCommand
(
c
,
0
,
UNIT_SECONDS
);
}
}
/* PEXPIRE key milliseconds */
/* PEXPIRE key milliseconds
[ NX | XX | GT | LT]
*/
void
pexpireCommand
(
client
*
c
)
{
void
pexpireCommand
(
client
*
c
)
{
expireGenericCommand
(
c
,
mstime
(),
UNIT_MILLISECONDS
);
expireGenericCommand
(
c
,
mstime
(),
UNIT_MILLISECONDS
);
}
}
/* PEXPIREAT key
ms_time
*/
/* PEXPIREAT key
unix-time-milliseconds [ NX | XX | GT | LT]
*/
void
pexpireatCommand
(
client
*
c
)
{
void
pexpireatCommand
(
client
*
c
)
{
expireGenericCommand
(
c
,
0
,
UNIT_MILLISECONDS
);
expireGenericCommand
(
c
,
0
,
UNIT_MILLISECONDS
);
}
}
...
...
src/functions.c
View file @
f36eac9f
...
@@ -599,6 +599,7 @@ void functionDeleteCommand(client *c) {
...
@@ -599,6 +599,7 @@ void functionDeleteCommand(client *c) {
addReply
(
c
,
shared
.
ok
);
addReply
(
c
,
shared
.
ok
);
}
}
/* FUNCTION KILL */
void
functionKillCommand
(
client
*
c
)
{
void
functionKillCommand
(
client
*
c
)
{
scriptKill
(
c
,
0
);
scriptKill
(
c
,
0
);
}
}
...
@@ -778,6 +779,7 @@ load_error:
...
@@ -778,6 +779,7 @@ load_error:
}
}
}
}
/* FUNCTION FLUSH [ASYNC | SYNC] */
void
functionFlushCommand
(
client
*
c
)
{
void
functionFlushCommand
(
client
*
c
)
{
if
(
c
->
argc
>
3
)
{
if
(
c
->
argc
>
3
)
{
addReplySubcommandSyntaxError
(
c
);
addReplySubcommandSyntaxError
(
c
);
...
@@ -803,6 +805,7 @@ void functionFlushCommand(client *c) {
...
@@ -803,6 +805,7 @@ void functionFlushCommand(client *c) {
addReply
(
c
,
shared
.
ok
);
addReply
(
c
,
shared
.
ok
);
}
}
/* FUNCTION HELP */
void
functionHelpCommand
(
client
*
c
)
{
void
functionHelpCommand
(
client
*
c
)
{
const
char
*
help
[]
=
{
const
char
*
help
[]
=
{
"LOAD <ENGINE NAME> <LIBRARY NAME> [REPLACE] [DESCRIPTION <LIBRARY DESCRIPTION>] <LIBRARY CODE>"
,
"LOAD <ENGINE NAME> <LIBRARY NAME> [REPLACE] [DESCRIPTION <LIBRARY DESCRIPTION>] <LIBRARY CODE>"
,
...
...
src/pubsub.c
View file @
f36eac9f
...
@@ -708,7 +708,7 @@ void ssubscribeCommand(client *c) {
...
@@ -708,7 +708,7 @@ void ssubscribeCommand(client *c) {
}
}
/* SUNSUBSCRIBE [channel ...] */
/* SUNSUBSCRIBE [channel
[channel
...]
]
*/
void
sunsubscribeCommand
(
client
*
c
)
{
void
sunsubscribeCommand
(
client
*
c
)
{
if
(
c
->
argc
==
1
)
{
if
(
c
->
argc
==
1
)
{
pubsubUnsubscribeShardAllChannels
(
c
,
1
);
pubsubUnsubscribeShardAllChannels
(
c
,
1
);
...
...
src/server.c
View file @
f36eac9f
...
@@ -4911,7 +4911,7 @@ void commandInfoCommand(client *c) {
...
@@ -4911,7 +4911,7 @@ void commandInfoCommand(client *c) {
}
}
}
}
/* COMMAND DOCS [
<
command-name
>
...] */
/* COMMAND DOCS [
command-name [
command-name ...]
]
*/
void
commandDocsCommand
(
client
*
c
)
{
void
commandDocsCommand
(
client
*
c
)
{
int
i
;
int
i
;
if
(
c
->
argc
==
2
)
{
if
(
c
->
argc
==
2
)
{
...
...
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