CC: | brian.lucas [...] heartit.com |
Subject: | Support expiry & existential tests in SET command |
The current implementation of SET does not take into account the additional features introduced in Redis 2.6:
Show quoted text
> Starting with Redis 2.6.12 SET supports a set of options that modify its behavior:
> - EX seconds -- Set the specified expire time, in seconds.
> - PX milliseconds -- Set the specified expire time, in milliseconds.
> - NX -- Only set the key if it does not already exist.
> - XX -- Only set the key if it already exist.
I am happy to write some tests and a patch for these new behaviors, but I'm unsure where to put them. I'd probably put the NX/XX behaviors in 06-keys.t. Do you think the EX/PX ones belong there as well, or perhaps in 07-expires.t?
Cheers,
Jordan Reuter
PAUSE: JRR