If I want to PERSIST a number of keys, I have to call the PERSIST command once per key.
Provide a command or update the PERSIST command to take multiple keys.
Comment From: madolson
Is there a reason multi-exec doesn't solve your use case today? You can do something like:
MULTI
PERSIST KEYA
PERSIST KEYB
EXEC
This will be similar in performance to a variadic persist command.
Comment From: simonprickett
I feel it'd be easier to teach / more intuitive to have a variadic persist (especially as other commands imply this is a thing - del being an example of an existing command that sets this expectation).
Comment From: madolson
Not all commands are variadic. Commands like EXPIRE the logical mirror to this command, are not variadic. The downside of variadic commands is it often constrains the syntax for future updates to the command. (Say, we want to add flags to persist)
Comment From: oranagra
Recently discussed in https://github.com/redis/redis/pull/9062