Removes all server-side Lua scripts from the script cache.
SCRIPT
FLUSH [ASYNC
| SYNC]
Flush the Lua scripts cache.
By default, SCRIPT FLUSH will synchronously flush the
cache. 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 asynchronouslySYNC: flushes the cache synchronouslyFor more information about EVAL scripts please refer to
Introduction to Eval
Scripts.
Simple string
reply: OK.
O(N) with N being the number of scripts in cache
@scripting
ASYNC and SYNC flushing
mode modifiers.EVAL, EVALSHA, EVALSHA_RO, EVAL_RO, FCALL, FCALL_RO, FUNCTION, FUNCTION DELETE, FUNCTION DUMP, FUNCTION FLUSH, FUNCTION HELP, FUNCTION KILL, FUNCTION LIST, FUNCTION LOAD, FUNCTION RESTORE, FUNCTION STATS, SCRIPT, SCRIPT DEBUG, SCRIPT EXISTS, SCRIPT HELP, SCRIPT KILL, SCRIPT LOAD.