blob: 705d0142d4b13ae6c8d9f8b0d3c2f820becfa19d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
Flush the Lua scripts cache.
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:
* `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
## Behavior change history
* `>= 6.2.0`: Default flush behavior now configurable by the **lazyfree-lazy-user-flush** configuration directive.
|