TFCALL

Syntax
TFCALL <library name>.<function name> <number of keys> [<key1> ... <keyn>] [<arg1> ... <argn>]
Available in:
Redis Stack / Triggers and functions 2.0.0
Time complexity:
Depends on the function that is executed.

Invoke a function.

Required arguments

library name

The name of the JavaScript library that contains the function.

function name

The function name to run.

number of keys

The number keys that will follow.

keys

The keys that will be touched by the function.

arguments

The arguments passed to the function.

Return

TFCALL returns either

  • The return value of the function.
  • Error reply when the function execution failed.

Examples

TFCALL lib.hello 0
"Hello World"

See also


Rate this page