EVAL

Apply for Redis Developer Course Redis Regular Inspection / Technical Support Redis Enterprise Server

Run a Lua Script

Runs a Lua script. It is case-sensitive. Arrays start at 1.

Example

Command>EVAL "return redis.call('set','key','value')" 0
Result>OK
Command>EVAL "return redis.call('get',KEYS[1])" 1 key
Result>value

Syntax

EVAL script numkeys key [key ...] arg [arg ...]

  • Available since version 2.6.0.
  • Depends on the script.

<< Lua Script Intro EVAL EVALSHA >>

Email 답글이 올라오면 이메일로 알려드리겠습니다.