SCRIPT LOAD

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

SCRIPT LOAD

Loads a Lua script. The script is cached in memory.
Cached scripts are run with EVALSHA.

Example

Command>SCRIPT LOAD "return redis.call('set',KEYS[1],ARGV[1])"
Result>c686f316aaf1eb01d5a4de1b0b63cd233010e63d
Command>EVALSHA c686f316aaf1eb01d5a4de1b0b63cd233010e63d 1 key value
Result>OK

Syntax

SCRIPT LOAD script

  • Available since version 2.6.0.
  • Time complexity is O(N). N is the number of bytes.

<< EVALSHA SCRIPT LOAD SCRIPT INFO >>

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