fred.rs
fred.rs copied to clipboard
[Feature] Support the SETNX command
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.