ACL 保存
Syntax
ACL SAVE
- Available since:
- 6.0.0
- Time complexity:
- O(N). Where N is the number of configured users.
- ACL categories:
-
@admin
,@slow
,@dangerous
,
当Redis配置为使用ACL文件(使用aclfile
配置选项)时,此命令将把服务器内存中当前定义的ACLs保存到ACL文件中。
示例
> ACL SAVE
+OK
> ACL SAVE
-ERR There was an error trying to save the ACLs. Please check the server logs for more information
RESP2/RESP3 回复
Simple string reply:OK
.
The command may fail with an error for several reasons: if the file cannot be written or if the server is not configured to use an external ACL file.