sha1 = redis.script_load("return 1")

assert redis.evalsha(sha1) == 1

Arguments

script
str
required

The script to load.

Response

The sha1 of the script.

sha1 = redis.script_load("return 1")

assert redis.evalsha(sha1) == 1