功能恢复

Syntax
FUNCTION RESTORE serialized-value [FLUSH | APPEND | REPLACE]
Available since:
7.0.0
Time complexity:
O(N) where N is the number of functions on the payload
ACL categories:
@write, @slow, @scripting,

从序列化的有效负载中恢复库。

您可以使用可选的policy参数来提供处理现有库的策略。 允许的策略如下:

  • APPEND: 将恢复的库附加到现有库中,并在冲突时中止。 这是默认策略。
  • FLUSH: 在恢复有效负载之前删除所有现有的库。
  • REPLACE: 将恢复的库附加到现有库中,在名称冲突的情况下替换任何现有的库。请注意,此策略不会防止函数名称冲突,只会防止库名称冲突。

更多信息请参考Introduction to Redis Functions

RESP2/RESP3 回复

Simple string reply: OK.
RATE THIS PAGE
Back to top ↑