FUNCTION DELETE

语法
FUNCTION DELETE library-name
可用时间
7.0.0
时间复杂度
O(1)
ACL 类别
@write, @slow, @scripting,

删除一个库及其所有函数。

此命令将删除名为library-name的库及其所有函数。 如果库不存在,服务器将返回错误。

有关更多信息,请参阅 Redis 函数简介.

示例

redis> FUNCTION LOAD "#!lua name=mylib \n redis.register_function('myfunc', function(keys, args) return 'hello' end)"
"mylib"
redis> FCALL myfunc 0
"hello"
redis> FUNCTION DELETE mylib
OK
redis> FCALL myfunc 0
(error) ERR Function not found

RESP2/RESP3 回复

简单字符串回复: OK.
RATE THIS PAGE
Back to top ↑