SCRIPT LOAD script
- Available since:
- Time complexity:
- O(N) with N being the length in bytes of the script body.
- ACL categories:
Load a script into the scripts cache, without executing it.
After the specified command is loaded into the script cache it will be callable
EVALSHA with the correct SHA1 digest of the script, exactly like after
the first successful invocation of
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.