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
a6edfcea
"vscode:/vscode.git/clone" did not exist on "60c448b58469ea08aaae16b5667788cbd8044516"
Commit
a6edfcea
authored
Aug 18, 2014
by
antirez
Browse files
Fix invalid expire error for SET family commands.
parent
18ca8318
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/t_string.c
View file @
a6edfcea
...
...
@@ -69,7 +69,7 @@ void setGenericCommand(redisClient *c, int flags, robj *key, robj *val, robj *ex
if
(
getLongLongFromObjectOrReply
(
c
,
expire
,
&
milliseconds
,
NULL
)
!=
REDIS_OK
)
return
;
if
(
milliseconds
<=
0
)
{
addReplyError
(
c
,
"invalid expire time in
SETEX"
);
addReplyError
Format
(
c
,
"invalid expire time in
%s"
,
c
->
cmd
->
name
);
return
;
}
if
(
unit
==
UNIT_SECONDS
)
milliseconds
*=
1000
;
...
...
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