函数 FLUSH
Syntax
FUNCTION FLUSH [ASYNC | SYNC]
- Available since:
- 7.0.0
- Time complexity:
- O(N) where N is the number of functions deleted
- ACL categories:
-
@write
,@slow
,@scripting
,
删除所有库。
除非使用可选的模式参数调用,否则lazyfree-lazy-user-flush
配置指令设置有效行为。有效模式包括:
ASYNC
: 异步刷新库。SYNC
: 同步刷新库。
更多信息请参考Introduction to Redis Functions。
RESP2/RESP3 回复
Simple string reply:OK
.