ACL 删除用户

Syntax
ACL DELUSER username [username ...]
Available since:
6.0.0
Time complexity:
O(1) amortized time considering the typical user.
ACL categories:
@admin, @slow, @dangerous,

删除所有指定的ACL用户并终止所有使用这些用户进行身份验证的连接。注意:特殊的default用户无法从系统中移除,这是每个新连接默认使用的用户。用户列表可能包含不存在的用户名,在这种情况下,不会对不存在的用户执行任何操作。

示例

> ACL DELUSER antirez
1

RESP2/RESP3 回复

Integer reply: the number of users that were deleted. This number will not always match the number of arguments since certain users may not exist.
RATE THIS PAGE
Back to top ↑