Skip to content

Ask the HotKV docs

Answers come only from these docs and can be wrong; check the linked pages before you rely on them.

SCRIPT

Last updated
SCRIPT LOAD script
SCRIPT EXISTS sha1 [sha1 ...]
SCRIPT FLUSH [ASYNC | SYNC]
SCRIPT KILL
SCRIPT DEBUG YES | SYNC | NO
SCRIPT HELP
Group
Scripting and functions
Arity
-2 (at least 2 words, counting the command name)
Flags
slow
HotKV Cloud
All plans
On-Premise
no license needed

SCRIPT is a container for subcommands that manage the cache of Lua scripts used by EVAL and EVALSHA.

Subcommand What it does
SCRIPT LOAD Compile a script and add it to the cache
SCRIPT EXISTS Check whether scripts are cached
SCRIPT FLUSH Empty the cache
SCRIPT KILL Stop a long-running script that has not written yet
SCRIPT DEBUG Accepted for compatibility; only NO is supported
SCRIPT HELP A short description of each subcommand

An unknown subcommand replies with ERR unknown subcommand '<name>'. Try SCRIPT HELP.

127.0.0.1:6379> SCRIPT LOAD "return ARGV[1]"
"098e0f0d1448c0a81dafe820f66d460eb09263da"
127.0.0.1:6379> SCRIPT EXISTS 098e0f0d1448c0a81dafe820f66d460eb09263da
1) (integer) 1

The same subcommands as Redis 7 and Valkey 8, except that there is no script debugger behind SCRIPT DEBUG.

EVAL, EVALSHA, FUNCTION