summaryrefslogtreecommitdiff
path: root/redis.conf
diff options
context:
space:
mode:
authorYang Bodong <bodong.ybd@alibaba-inc.com>2021-01-15 21:32:58 +0800
committerGitHub <noreply@github.com>2021-01-15 15:32:58 +0200
commit294f93af97a6964c28f8d9cabbccc5da8950f9b0 (patch)
treeb63d243f1ca6ebdb6e47b24ef4dfdc3503c7fabf /redis.conf
parentfcb3dfe56d3e2e0732c6787fe11789252eaf9ba2 (diff)
downloadredis-294f93af97a6964c28f8d9cabbccc5da8950f9b0.tar.gz
Add lazyfree-lazy-user-flush config to control default behavior of FLUSH[ALL|DB], SCRIPT FLUSH (#8258)
* Adds ASYNC and SYNC arguments to SCRIPT FLUSH * Adds SYNC argument to FLUSHDB and FLUSHALL * Adds new config to control the default behavior of FLUSHDB, FLUSHALL and SCRIPT FLUASH. the new behavior is as follows: * FLUSH[ALL|DB],SCRIPT FLUSH: Determine sync or async according to the value of lazyfree-lazy-user-flush. * FLUSH[ALL|DB],SCRIPT FLUSH ASYNC: Always flushes the database in an async manner. * FLUSH[ALL|DB],SCRIPT FLUSH SYNC: Always flushes the database in a sync manner.
Diffstat (limited to 'redis.conf')
-rw-r--r--redis.conf7
1 files changed, 7 insertions, 0 deletions
diff --git a/redis.conf b/redis.conf
index a5062fda9..5f9eed7fe 100644
--- a/redis.conf
+++ b/redis.conf
@@ -1089,6 +1089,13 @@ replica-lazy-flush no
lazyfree-lazy-user-del no
+# FLUSHDB, FLUSHALL, and SCRIPT FLUSH support both asynchronous and synchronous
+# deletion, which can be controlled by passing the [SYNC|ASYNC] flags into the
+# commands. When neither flag is passed, this directive will be used to determine
+# if the data should be deleted asynchronously.
+
+lazyfree-lazy-user-flush no
+
################################ THREADED I/O #################################
# Redis is mostly single threaded, however there are certain threaded