It is equivalent to executing a piece of code cached on the server according to the sha1 check code.
The usage of this command is similar to eval - the way the parameters are passed in, etc.
Use requires redis version >= 2.6.0
grammar
*> evalsha sha1 numkeys [key ...] [arg ...]
sha1: sha1 check code generated by script load
numkeys: specify the number of key name parameters
[key ...]: key name parameters. Method used in script (KEYS[1],KEYS[2]...)
[arg...] : Additional parameters. Methods used in the script (ARGV[1],ARGV[2]...)
script load cache
192.168.1.46:6380> script load "return 'love u'"
"b1778997b8491c6711ea377e6ad5877dcf624a5d"
evalsha
192.168.1.46:6380> evalsha "b1778997b8491c6711ea377e6ad5877dcf624a5d" 0
"love u"