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
- New Content published on w3resource:
- HTML-CSS Practical: Exercises, Practice, Solution
- Java Regular Expression: Exercises, Practice, Solution
- Scala Programming Exercises, Practice, Solution
- Python Itertools exercises
- Python Numpy exercises
- Python GeoPy Package exercises
- Python Pandas exercises
- Python nltk exercises
- Python BeautifulSoup exercises
- Form Template
- Composer - PHP Package Manager
- PHPUnit - PHP Testing
- Laravel - PHP Framework
- Angular - JavaScript Framework
- Vue - JavaScript Framework
- Jest - JavaScript Testing Framework