lua_evalsha
EVALSHA
Apply for Redis Developer Course
|
Redis Regular Inspection / Technical Support
|
Redis Enterprise Server
|
|---|
Run a loaded Lua Script
SCRIPT LOAD returns a SHA. Run the script by specifying that SHA.
When you program several Redis commands together, performance improves and
network usage can be reduced.
Example
| Command> | SCRIPT LOAD "return redis.call('set',KEYS[1],ARGV[1])" |
| Result> | c686f316aaf1eb01d5a4de1b0b63cd233010e63d |
| Command> | EVALSHA c686f316aaf1eb01d5a4de1b0b63cd233010e63d 1 key value |
| Result> | OK |
Syntax
EVAL sha1 numkeys key [key ...] arg [arg ...]
- Available since version 2.6.0.
- Depends on the script.
| << EVAL | EVALSHA | SCRIPT LOAD >> |
|---|
Email
답글이 올라오면 이메일로 알려드리겠습니다.
