diff options
Diffstat (limited to 'iredis/data/commands/script-flush.md')
-rw-r--r-- | iredis/data/commands/script-flush.md | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/iredis/data/commands/script-flush.md b/iredis/data/commands/script-flush.md index bc5a545..705d014 100644 --- a/iredis/data/commands/script-flush.md +++ b/iredis/data/commands/script-flush.md @@ -1,23 +1,19 @@ Flush the Lua scripts cache. -Please refer to the `EVAL` documentation for detailed information about Redis -Lua scripting. +By default, `SCRIPT FLUSH` will synchronously flush the cache. +Starting with Redis 6.2, setting the **lazyfree-lazy-user-flush** configuration directive to "yes" changes the default flush mode to asynchronous. -By default, `SCRIPT FLUSH` will synchronously flush the cache. 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 cache asynchronously +* `!SYNC`: flushes the cache synchronously -- `ASYNC`: flushes the cache asynchronously -- `!SYNC`: flushes the cache synchronously +For more information about `EVAL` scripts please refer to [Introduction to Eval Scripts](/topics/eval-intro). @return @simple-string-reply -@history +## Behavior change history -- `>= 6.2.0`: Added the `ASYNC` and `!SYNC` flushing mode modifiers, as well as - the **lazyfree-lazy-user-flush** configuration directive. +* `>= 6.2.0`: Default flush behavior now configurable by the **lazyfree-lazy-user-flush** configuration directive.
\ No newline at end of file |