Describe the solution you'd like
The SETNX command should be added to the KeysInterface trait.
Additional context
I known this command is regarded as deprecated and that we should use SET with the NX option but I would like to prevent clients from overriding existing keys with Redis ACL which is only possible with the SETNX command.
Describe the solution you'd like The
SETNX
command should be added to theKeysInterface
trait.Additional context I known this command is regarded as deprecated and that we should use
SET
with theNX
option but I would like to prevent clients from overriding existing keys with Redis ACL which is only possible with theSETNX
command.