修改本页

Redis 命令 客户端 文档 社区 下载 问题 支持 许可

SCRIPT LOAD script

相关命令

Available since 2.6.0.

时间复杂度: O(N) with N being the length in bytes of the script body.

Load a script into the scripts cache, without executing it. After the specified command is loaded into the script cache it will be callable using EVALSHA with the correct SHA1 digest of the script, exactly like after the first successful invocation of EVAL.

The script is guaranteed to stay in the script cache forever (unless SCRIPT FLUSH is called).

The command works in the same way even if the script was already present in the script cache.

Please refer to the EVAL documentation for detailed information about Redis Lua scripting.

返回值

Bulk string reply This command returns the SHA1 digest of the script added into the script cache.

Comments powered by Disqus

This website is open source software developed by Citrusbyte.

The Redis logo was designed by Carlos Prioglio. See more credits.

Sponsored by Redis Support