dice icon indicating copy to clipboard operation
dice copied to clipboard

feat: [GH-203] Add support for PXAT in SET command

Open lucifercr07 opened this issue 1 year ago • 0 comments

Change Details:

  • Added support for PXAT in SET command similar to the PXAT option in Redis.
  • Format: SET key val PXAT unix-time-milliseconds
  • Added unit and integration test for the same.
  • Currently there's no mechanism to handle immediate expiration for past PXAT timestamps. Hence added setExpiry to be set to 0 ms when creating NewObj.

Test scenarios:

  • Invalid values for PXAT e.g: str, -ve int etc.
  • Expiry of keys associated with valid UNIX ms
  • Expiry of keys associated with invalid UNIX ms
image

lucifercr07 avatar Aug 04 '24 12:08 lucifercr07