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
4cb8bb29
Commit
4cb8bb29
authored
Apr 07, 2012
by
antirez
Browse files
Never used function stringObjectEqualsMs() removed.
parent
f02aa7bb
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/db.c
View file @
4cb8bb29
...
...
@@ -510,14 +510,6 @@ int expireIfNeeded(redisDb *db, robj *key) {
* Expires Commands
*----------------------------------------------------------------------------*/
/* Given an string object return true if it contains exactly the "ms"
* or "MS" string. This is used in order to check if the last argument
* of EXPIRE, EXPIREAT or TTL is "ms" to switch into millisecond input/output */
int
stringObjectEqualsMs
(
robj
*
a
)
{
char
*
arg
=
a
->
ptr
;
return
tolower
(
arg
[
0
])
==
'm'
&&
tolower
(
arg
[
1
])
==
's'
&&
arg
[
2
]
==
'\0'
;
}
/* This is the generic command implementation for EXPIRE, PEXPIRE, EXPIREAT
* and PEXPIREAT. Because the commad second argument may be relative or absolute
* the "basetime" argument is used to signal what the base time is (either 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