FUNCTION RESTORE · Valkey

FUNCTION RESTORE

Restores all libraries from a payload.

Usage

FUNCTION RESTORE serialized-value [FLUSH | APPEND | REPLACE]

Description

Restore libraries from the serialized payload.

You can use the optional policy argument to provide a policy for handling existing libraries. The following policies are allowed:

For more information please refer to Introduction to Valkey Functions.

Reply

Simple string reply: OK.

Complexity

O(N) where N is the number of functions on the payload

ACL Categories

@scripting

History

See also

EVAL, EVALSHA, EVALSHA_RO, EVAL_RO, FCALL, FCALL_RO, FUNCTION, FUNCTION DELETE, FUNCTION DUMP, FUNCTION FLUSH, FUNCTION HELP, FUNCTION KILL, FUNCTION LIST, FUNCTION LOAD, FUNCTION STATS, SCRIPT, SCRIPT DEBUG, SCRIPT EXISTS, SCRIPT FLUSH, SCRIPT HELP, SCRIPT KILL, SCRIPT LOAD.