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
1976acfe
Unverified
Commit
1976acfe
authored
Mar 25, 2021
by
Wang Yuan
Committed by
GitHub
Mar 25, 2021
Browse files
Remove deprecated comments about saving expire time (#8692)
parent
497351ad
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/rdb.c
View file @
1976acfe
...
@@ -1073,8 +1073,7 @@ size_t rdbSavedObjectLen(robj *o, robj *key) {
...
@@ -1073,8 +1073,7 @@ size_t rdbSavedObjectLen(robj *o, robj *key) {
/* Save a key-value pair, with expire time, type, key, value.
/* Save a key-value pair, with expire time, type, key, value.
* On error -1 is returned.
* On error -1 is returned.
* On success if the key was actually saved 1 is returned, otherwise 0
* On success if the key was actually saved 1 is returned. */
* is returned (the key was already expired). */
int
rdbSaveKeyValuePair
(
rio
*
rdb
,
robj
*
key
,
robj
*
val
,
long
long
expiretime
)
{
int
rdbSaveKeyValuePair
(
rio
*
rdb
,
robj
*
key
,
robj
*
val
,
long
long
expiretime
)
{
int
savelru
=
server
.
maxmemory_policy
&
MAXMEMORY_FLAG_LRU
;
int
savelru
=
server
.
maxmemory_policy
&
MAXMEMORY_FLAG_LRU
;
int
savelfu
=
server
.
maxmemory_policy
&
MAXMEMORY_FLAG_LFU
;
int
savelfu
=
server
.
maxmemory_policy
&
MAXMEMORY_FLAG_LFU
;
...
...
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