aembke / fred.rs

An async Redis client for Rust.
Apache License 2.0
384 stars 62 forks source link

[Feature] Support the SETNX command #294

Closed AverageADF closed 2 weeks ago

AverageADF commented 1 month ago

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.

aembke commented 2 weeks ago

Thanks @AverageADF, this is added in 9.3.0