redis EVALSHA command
Translation results:
eval
UK ['i:vl] US ['i:vl]
[medical]evaluate evaluation
redis EVALSHA commandsyntax
Function: Evaluate the script cached in the server based on the given sha1 check code.
Syntax: EVALSHA sha1 numkeys key [key ...] arg [arg ...]
Description: Cache the script to the server The operation can be performed through the SCRIPT LOAD command. Other aspects of this command, such as the method of passing parameters, are the same as the EVAL command.
Available versions: >= 2.6.0
Time complexity: Depends on the complexity of the script.
redis EVALSHA commandexample
redis> SCRIPT LOAD "return 'hello moto'" "232fd51614574cf0867b83d384a5e898cfd24e5a" redis> EVALSHA "232fd51614574cf0867b83d384a5e898cfd24e5a" 0 "hello moto"