What's new in Valkey 9.0? Discover new features and improvements. Read the announcement.

ACL SAVE

Saves the effective ACL rules in the configured ACL file.

Usage
ACL SAVE
Complexity
O(N). Where N is the number of configured users.
Since
6.0.0
ACL Categories
@admin, @dangerous, @slow
Command flags
ADMIN, NOSCRIPT, LOADING, STALE, SENTINEL

When Valkey is configured to use an ACL file (with the aclfile configuration option), this command will save the currently defined ACLs from the server memory to the ACL file.

Examples

127.0.0.1:6379> ACL SAVE
OK
127.0.0.1:6379> ACL SAVE
(error) ERR There was an error trying to save the ACLs. Please check the server logs for more information

Replies

RESP2

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.

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.