« Back to Search  |  Reader Mode  |  Switch to Full Retro Site View Links: Stay in Reader  |  Retro Mode: ON  |  Original »
Valkey · Extracted in 616 ms

Valkey Command: FUNCTION RESTORE

Source: https://valkey.io/commands/function-restore/

FUNCTION RESTORE

Usage:
FUNCTION RESTORE serialized-value [ FLUSH | APPEND | REPLACE ]
Complexity:
O(N) where N is the number of functions on the payload
Since:
7.0.0
ACL Categories:
@scripting, @slow, @write

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:

  • APPEND: appends the restored libraries to the existing libraries and aborts on collision. This is the default policy.
  • FLUSH: deletes all existing libraries before restoring the payload.
  • REPLACE: appends the restored libraries to the existing libraries, replacing any existing ones in case of name collisions. Note that this policy doesn't prevent function name collisions, only libraries.

For more information please refer to Introduction to Valkey Functions .

Reply

OK.

See an error? Update this Page on GitHub!