Scripting Script Kill
# Redis Script kill Command | Rookie Tutorial
# [Rookie Tutorial --
* (javascript:void(0);)
* (javascript:void(0);)
* (javascript:void(0);)
* (javascript:void(0))
Redis Tutorial
(#)(#)(#)(#)(#)
## Redis Commands
(#)(#)(#)(#)(#)(#)(#)(#)[Redis Pub/Sub](#)(#)(#)(#)(#)(#)(#)
## Redis Advanced Tutorial
(#)(#)(#)(#)(#)(#)(#)(#)
[](#)(#)
(#)[](#)
Deep Dive
Script
Network
SCRIPT
Scripting Language
Script
Data Management
Programming
Web Service
Computer Science
Software
# Redis Script kill Command
!(#)(#)
The Redis SCRIPT KILL command is used to terminate the currently running Lua script, but only if the script has not performed any write operations.
This command is primarily used to stop scripts that run for too long, such as a script stuck in an infinite loop due to a bug.
After executing SCRIPT KILL, the currently running script will be terminated. The client executing this script will exit from the EVAL command's blocking state and receive an error as the return value.
### Syntax
The basic syntax of the Redis SCRIPT KILL command is as follows:
redis 127.0.0.1:6379> SCRIPT KILL
### Available Versions
>= 2.6.0
### Return Value
Always returns OK
### Example
redis 127.0.0.1:6379> SCRIPT KILL OK
!(#)(#)
YouTip