Skip to content
GitHub

RedisEval

type alias in meocord/common Since 4.1.0

type RedisEval = (
  script: string,
  keys: string[],
  args: string[],
) => Promise<unknown>

Runs a Lua script on the server, as a client's EVAL does.

It receives the script, the keys it touches and its arguments, and resolves to the script's reply.