English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
The Redis Script kill command is used to kill the currently running Lua script, and this command takes effect only when the script has not performed any write operation.
This command is mainly used to terminate scripts that run for too long, such as scripts that run indefinitely due to a BUG.
After executing SCRIPT KILL, the currently running script will be killed, and the client executing this script will exit from the block of the EVAL command and receive an error as the return value.
The basic syntax of the redis script kill command is as follows:
redis 127.0.0.1:6379> SCRIPT KILL
>= 2.6.0
Always returns OK
redis 127.0.0.1:6379> SCRIPT KILL OK