TFCALLASYNC

Syntax
TFCALLASYNC <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 an asynchronous JavaScript function (coroutine).

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

TFCALLASYNC returns either

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

Examples

TFCALLASYNC lib.hello 0
"Hello World"

See also


RATE THIS PAGE
Back to top ↑