dice icon indicating copy to clipboard operation
dice copied to clipboard

Add support for NX, XX, GT, LT, etc. to EXPIRE and EXPIREAT commands

Open JyotinderSingh opened this issue 1 year ago • 2 comments

The EXPIREAT command supports a set of options: NX -- Set expiry only when the key has no expiry XX -- Set expiry only when the key has an existing expiry GT -- Set expiry only when the new expiry is greater than current one LT -- Set expiry only when the new expiry is less than current one A non-volatile key is treated as an infinite TTL for the purpose of GT and LT. The GT, LT and NX options are mutually exclusive.

We need to add support for these options in our implementations of these commands.

JyotinderSingh avatar Aug 19 '24 18:08 JyotinderSingh

Could you please assign this to me ? @JyotinderSingh

raghavbabbar avatar Aug 19 '24 18:08 raghavbabbar

Could you please assign this to me ? @JyotinderSingh

Assigned.

JyotinderSingh avatar Aug 19 '24 18:08 JyotinderSingh