English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
The Redis Evalsha command based on the given sha1 Verification code, execute the script cached on the server.
The operation of caching scripts to the server can be performed through the SCRIPT LOAD command.
In other places of this command, such as the way parameters are passed, are the same as those of the EVAL command.
Basic Syntax of Redis Evalsha Command:
redis 127.0.0.1:6379> EVALSHA sha1 numkeys key [key ...] arg [arg ...]
Parameter Description:
>= 2.6.0
redis 127.0.0.1:6379> SCRIPT LOAD "return 'hello moto'" "232fd51614574cf0867b83d384a5e898cfd24e5a" redis 127.0.0.1:6379> EVALSHA "232fd51614574cf0867b83d384a5e898cfd24e5a" 0 "hello moto"