Home / node / Commands / enumerations / FunctionRestorePolicy @valkey/valkey-glide
@valkey/valkey-glide / Commands / FunctionRestorePolicy
Enumeration: FunctionRestorePolicy
Option for FUNCTION RESTORE
command: GlideClient.functionRestore and
GlideClusterClient.functionRestore.
See
valkey.io for more details.
Enumeration Members
APPEND
APPEND:
"APPEND"
Appends the restored libraries to the existing libraries and aborts on collision. This is the default policy.
FLUSH
FLUSH:
"FLUSH"
Deletes all existing libraries before restoring the payload.
REPLACE
REPLACE:
"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.