YouTip LogoYouTip

Scripting Script Load

# Redis Script Load Command * (javascript:void(0);) * (javascript:void(0);) * (javascript:void(0);) * (javascript:void(0)) Redis Tutorial (#)(#)(#)(#)(#) ## Redis Commands (#)(#)(#)(#)(#)(#)(#)(#)[Redis Pub/Sub](#)(#)(#)(#)(#)(#)(#) ## Redis Advanced Tutorial [Redis Data Backup & Recovery](#)(#)(#)(#)(#)(#)(#)(#) [](#)(#) (#)[](#) Deep Dive Web Service Scripting Computer Science Development Tools Programming Languages Web Services Programming Scripting Languages Web Design & Development Software # Redis Script Load Command !(#)(#) The Redis Script Load command is used to add the script `script` to the script cache, but does not execute the script immediately. The (#) command also adds the script to the script cache, but it evaluates the input script immediately. If the given script is already in the cache, no operation is performed. After the script is added to the cache, it can be invoked using the script's SHA1 checksum via the (#) command. The script can remain in the cache indefinitely until the (#) command is executed. For more information about using Redis to evaluate Lua scripts, see the (#) command. ### Syntax The basic syntax of the Redis Script Load command is as follows: redis 127.0.0.1:6379> SCRIPT LOAD script ### Available Since >= 2.6.0 ### Return Value The SHA1 checksum of the given script. ### Example redis 127.0.0.1:6379> SCRIPT LOAD "return 1""e0e1f9fabfc9d4800c877a703b823ac0578ff8db" !(#)(#)
← Pub Sub UnsubscribeScripting Evalsha β†’