ACL-SAVE(3valkey)

πŸ“¦
version 9.0.6 Β· 2 versions
, in fedora 44

✨ ACL-SAVE ✨

okay bestie, we're doing the ACL SAVE page from the Valkey Command Manual (that's the 3valkey section, iykyk) and honestly? it's giving "save your work before the vibes get deleted." πŸ’ΎπŸ’–


🌸 NAME 🌸

acl-save β€” saves the effective ACL rules into the configured ACL file. literally that's it, that's the whole job. πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

ACL SAVE

no args, no flags, no drama. just vibes. ✨


πŸŽ€ DESCRIPTION πŸŽ€

so here's the tea πŸ“ β€” when Valkey is configured to use an ACL file (that's the aclfile configuration option, remember her name), this command takes the currently defined ACLs chillin' in the server memory and writes them out to that ACL file. main character energy for your permissions, fr fr. πŸ‘‘


πŸ’– REPLY πŸ’–

valkey-protocol(7) Simple string reply: OK.

but bestie, it can also flop 😭 β€” the command may fail with an error for several reasons:

  • if the file can't be written πŸ’€
  • if the server is not configured to use an external ACL file πŸ™ˆ
so like, check your config before you come for her, okay? 🫢

⭐ COMPLEXITY ⭐

O(N). where N is the number of configured users. not the worst, not the best, it's a whole thing. 🌈


🌟 ACL CATEGORIES 🌟

@admin @dangerous @slow

yeah she's in the dangerous girlie club πŸ’… no cap, this one can touch your filesystem.


🧚 HISTORY 🧚

  1. Available since: 6.0.0 β€” an icon from day one, periodt. ✨

πŸ”₯ EXAMPLES πŸ”₯

look at her go:

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

first one? slayed. πŸ’– second one? not slayed. 😭 please check the server logs for more information, she's literally telling you.


πŸ‘‘ SEE ALSO πŸ‘‘


and that's the whole page bestie!! πŸ’–βœ¨πŸŽ€πŸ¦‹πŸŒΈπŸ’…πŸ«Ά

this iconic lil manual page is from Valkey version 9.0.0, dated 2025-10-21, and it lives in the ACL-SAVE(3valkey) corner of the Valkey Command Manual. go save those ACLs, queen. πŸ‘‘πŸŒˆβ­

πŸ“¦ where this page comes from