Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@mickamy
Copy link
Owner

@mickamy mickamy commented Oct 23, 2025

No description provided.

Copilot AI review requested due to automatic review settings October 23, 2025 06:35
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds support for EXAT, PXAT, and GET options to the Redis SET command, aligning the implementation with Redis 6.2+ behavior. The changes enable setting expiration times as absolute Unix timestamps and retrieving the previous value atomically.

  • Added EXAT (Unix seconds) and PXAT (Unix milliseconds) expiration options
  • Implemented GET option to return the old value before setting new one
  • Updated SetStringWithOptions signature to return previous value information

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
internal/server/cmd_set.go Implements EXAT, PXAT, and GET option parsing and handling in the SET command
internal/db/db.go Updates SetStringWithOptions to return previous value and existence flag
internal/server/cmd_set_test.go Adds comprehensive test coverage for new EXAT, PXAT, and GET options
internal/db/db_test.go Updates existing tests to handle new return signature
README.md Fixes markdown syntax for license link

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@mickamy mickamy merged commit b95c8d4 into main Oct 23, 2025
3 checks passed
@mickamy mickamy deleted the feat/exat-pxat-get-set-options branch October 23, 2025 06:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants