dice
dice copied to clipboard
feat: [GH-203] Add support for PXAT in SET command
Change Details:
- Added support for
PXATinSETcommand 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
setExpiryto be set to0 mswhen creatingNewObj.
Test scenarios:
- Invalid values for
PXATe.g:str,-ve intetc. - Expiry of keys associated with valid UNIX ms
- Expiry of keys associated with invalid UNIX ms