Scripts

SCRIPT LOAD

Load the specified Lua script into the script cache.

Arguments

scriptbodystrrequired

The script to load.

Response

strrequired

The sha1 of the script.

Example
sha1 = redis.script_load("return 1")assert redis.evalsha(sha1) == 1
Loading search…