go-redis icon indicating copy to clipboard operation
go-redis copied to clipboard

NX parameter missing for EXPIRE command

Open bmassemin opened this issue 3 years ago • 7 comments

According to https://redis.io/commands/expire the EXPIRE command can have the NX parameter. I can't find a command like ExpireNX() or a parameter for Expire()

Am I missing something ? Thanks 🙏

bmassemin avatar Aug 16 '21 21:08 bmassemin

Yes, it is a new option added by redis7.0, go-redis has not been updated yet.

monkey92t avatar Aug 17 '21 07:08 monkey92t

Can I push a PR with this new method or usually the maintainers are developing all the new features of an engine all at once?

bmassemin avatar Aug 17 '21 13:08 bmassemin

Yes, welcome

monkey92t avatar Aug 17 '21 14:08 monkey92t

Can I push a PR with this new method or usually the maintainers are developing all the new features of an engine all at once?

If you perform unit tests locally, you can try this tool (grte), it is still in the testing phase

monkey92t avatar Aug 18 '21 02:08 monkey92t

Hi, any news @bmassemin ?

DaemonSnake avatar Oct 21 '21 12:10 DaemonSnake

Sorry, I was planning on adding the feature to the client, but for my project, we don't use Redis 7 (yet), so I had to change my design. I will try to take a moment tomorrow to propose a PR.

bmassemin avatar Oct 21 '21 18:10 bmassemin

when are u guys planning to release the new version @DaemonSnake @vmihailenco @monkey92t

dpandey5515 avatar Feb 28 '22 06:02 dpandey5515

This issue is marked stale. It will be closed in 30 days if it is not updated.

github-actions[bot] avatar Sep 22 '23 00:09 github-actions[bot]