Fix: Preserve TTL after APPEND command
- Resolved an issue where the TTL was incorrectly reset to -1 after using the APPEND command on a key with an existing TTL.
- The TTL is now correctly preserved after appending to a key, matching expected behavior in Redis.
- Added relevant test cases to ensure that TTL is maintained across APPEND operations.
- Tests include scenarios for key expiration after APPEND and correct TTL decrement over time.
Benchmark
Closes #1036
Hi @dankot12, Hope you are well. I am excited to know about your progress on this issue. As you know, we would like to close this issue soon, please reach out to me or anyone on the discord community if you need any help.
Thanks.
Hi @dankot12 , please rebase you branch with the latest changes with the migrated eval function. Please reach out to me if you need any clarifications.
Hi @dankot12 , Hope you are well. I am eager to know more about progress on this issue. Please contact me or anyone on the discord community if you are blocked.
Thanks.
@dankot12 please resolve conflicts. https://github.com/DiceDB/dice/pull/1095 is merged now so please fix according to the migrated command.
Hi @lucifercr07, will do this by EOD Eastern Time. Thanks
Hi @lucifercr07 @apoorvyadav1111, this PR is ready for your review. Thanks!
Hi @dankot12 , Hope you are well. I am eager to know more about progress on this issue. Please contact me or anyone on the discord community if you are blocked.
Thanks.
@dankot12 any updates?
Hi @apoorvyadav1111 @arpitbbhayani, will be working on this today. Thanks.
Hi @apoorvyadav1111, the PR is ready for your review.
Hi, @dankot12 , please fix the lint errors. we can use object.<Constant> instead of dstore.CONSTANT notation.