Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
c8dbcff9
Commit
c8dbcff9
authored
Apr 06, 2020
by
antirez
Browse files
Clarify redis.conf comment about lazyfree-lazy-user-del.
parent
abd5156f
Changes
1
Hide whitespace changes
Inline
Side-by-side
redis.conf
View file @
c8dbcff9
...
@@ -936,23 +936,27 @@ replica-priority 100
...
@@ -936,23 +936,27 @@ replica-priority 100
# or SORT with STORE option may delete existing keys. The SET command
# or SORT with STORE option may delete existing keys. The SET command
# itself removes any old content of the specified key in order to replace
# itself removes any old content of the specified key in order to replace
# it with the specified string.
# it with the specified string.
# 4) The DEL command itself, and normally it's not easy to replace DEL with
# 4) During replication, when a replica performs a full resynchronization with
# UNLINK in user's codes.
# 5) During replication, when a replica performs a full resynchronization with
# its master, the content of the whole database is removed in order to
# its master, the content of the whole database is removed in order to
# load the RDB file just transferred.
# load the RDB file just transferred.
#
#
# In all the above cases the default is to delete objects in a blocking way,
# In all the above cases the default is to delete objects in a blocking way,
# like if DEL was called. However you can configure each case specifically
# like if DEL was called. However you can configure each case specifically
# in order to instead release memory in a non-blocking way like if UNLINK
# in order to instead release memory in a non-blocking way like if UNLINK
# was called, using the following configuration directives
:
# was called, using the following configuration directives
.
lazyfree
-
lazy
-
eviction
no
lazyfree
-
lazy
-
eviction
no
lazyfree
-
lazy
-
expire
no
lazyfree
-
lazy
-
expire
no
lazyfree
-
lazy
-
server
-
del
no
lazyfree
-
lazy
-
server
-
del
no
lazyfree
-
lazy
-
user
-
del
no
replica
-
lazy
-
flush
no
replica
-
lazy
-
flush
no
# It is also possible, for the case when to replace the user code DEL calls
# with UNLINK calls is not easy, to modify the default behavior of the DEL
# command to act exactly like UNLINK, using the following configuration
# directive:
lazyfree
-
lazy
-
user
-
del
no
################################ THREADED I/O #################################
################################ THREADED I/O #################################
# Redis is mostly single threaded, however there are certain threaded
# Redis is mostly single threaded, however there are certain threaded
...
...
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