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
- Weekly Trends and Language Statistics
- Weekly Trends and Language Statistics