summaryrefslogtreecommitdiffstats
path: root/iredis/data/commands/flushdb.md
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2023-01-04 07:19:32 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2023-01-04 07:19:32 +0000
commit7480e618ec785ba8a1c74c8a150cffe5880fb3bb (patch)
tree87422376dd9a7eee55850f0fce9a8bb4c13e44a2 /iredis/data/commands/flushdb.md
parentAdding upstream version 1.12.1. (diff)
downloadiredis-df49d7c38b2b8498c93215691d16403b32becec8.tar.xz
iredis-df49d7c38b2b8498c93215691d16403b32becec8.zip
Adding upstream version 1.13.0.upstream/1.13.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'iredis/data/commands/flushdb.md')
-rw-r--r--iredis/data/commands/flushdb.md21
1 files changed, 11 insertions, 10 deletions
diff --git a/iredis/data/commands/flushdb.md b/iredis/data/commands/flushdb.md
index ee47cc1..f823563 100644
--- a/iredis/data/commands/flushdb.md
+++ b/iredis/data/commands/flushdb.md
@@ -1,19 +1,20 @@
-Delete all the keys of the currently selected DB. This command never fails.
+Delete all the keys of the currently selected DB.
+This command never fails.
By default, `FLUSHDB` will synchronously flush all keys from the database.
-Starting with Redis 6.2, setting the **lazyfree-lazy-user-flush** configuration
-directive to "yes" changes the default flush mode to asynchronous.
+Starting with Redis 6.2, setting the **lazyfree-lazy-user-flush** configuration directive to "yes" changes the default flush mode to asynchronous.
-It is possible to use one of the following modifiers to dictate the flushing
-mode explicitly:
+It is possible to use one of the following modifiers to dictate the flushing mode explicitly:
-- `ASYNC`: flushes the database asynchronously
-- `!SYNC`: flushes the database synchronously
+* `ASYNC`: flushes the database asynchronously
+* `!SYNC`: flushes the database synchronously
-Note: an asynchronous `FLUSHDB` command only deletes keys that were present at
-the time the command was invoked. Keys created during an asynchronous flush will
-be unaffected.
+Note: an asynchronous `FLUSHDB` command only deletes keys that were present at the time the command was invoked. Keys created during an asynchronous flush will be unaffected.
@return
@simple-string-reply
+
+## Behavior change history
+
+* `>= 6.2.0`: Default flush behavior now configurable by the **lazyfree-lazy-user-flush** configuration directive. \ No newline at end of file