Skip to content

Ask the HotKV docs

Answers come only from these docs and can be wrong; check the linked pages before you rely on them.

ACL SAVE

Last updated
ACL SAVE
Group
ACL
Complexity
O(N) where N is the number of users
Arity
2 (exactly, counting the command name)
HotKV Cloud
All plans
On-Premise
no license needed

ACL SAVE writes every user, in the ACL LIST format, to the file set with the aclfile directive. The file is written to a temporary file first and then renamed over the old one, so a failed save leaves the previous file intact. Users are kept in memory only until you save them, so run ACL SAVE after changing users if they should survive a restart.

Simple string OK in RESP2 and RESP3, or one of these errors:

Case Error
No aclfile configured ERR This HotKV instance was not configured with an aclfile. Set 'aclfile <path>' in the config to persist ACL users.
The file could not be written ERR Cannot open '<path>' for writing: <reason>, or another message naming the step that failed
127.0.0.1:6379> ACL SETUSER reports on >reports-password ~report:* -@all +@read
OK
127.0.0.1:6379> ACL SAVE
OK

Same as Redis 7 and Valkey 8. The error texts differ.

ACL LOAD, ACL LIST