Please note, this is a STATIC archive of website www.w3resource.com from 19 Jul 2022, cach3.com does not collect or store any user information, there is no "phishing" involved.
w3resource

Redis Scripting: SCRIPT LOAD script

Description

Redis SCRIPT LOAD command is used to 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. The script is guaranteed to stay in the script cache forever . The command works in the same way even if the script was already present in the script cache.

Syntax:

SCRIPT LOAD script

Available since

2.6.0.

Return Value

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

Return Value Type

String

Example:

redis 127.0.0.1:6379> SCRIPT LOAD "return 1"
"e0e1f9fabfc9d4800c877a703b823ac0578ff8db"

Previous: SCRIPT KILL
Next: Redis Connection AUTH