Skip to content

feat(string): support IFEQ/IFNE/IFDEQ/IFDNE conditions for SET command#3452

Open
kirito632 wants to merge 3 commits intoapache:unstablefrom
kirito632:feat-set-ifeq
Open

feat(string): support IFEQ/IFNE/IFDEQ/IFDNE conditions for SET command#3452
kirito632 wants to merge 3 commits intoapache:unstablefrom
kirito632:feat-set-ifeq

Conversation

@kirito632
Copy link
Copy Markdown

  • Add conditional SET options: IFEQ, IFNE, IFDEQ, IFDNE
  • Propagate WRONGTYPE error when key type mismatch for conditional operations
  • Handle NX option with wrong type correctly (treat as key exists)
  • Add test case for SET NX GET on wrong type

This commit only includes SET command changes, DelEX changes will be in a separate PR as requested.

kirito632 and others added 3 commits April 15, 2026 13:20
- Add conditional SET options: IFEQ, IFNE, IFDEQ, IFDNE
- Propagate WRONGTYPE error when key type mismatch for conditional operations
- Handle NX option with wrong type correctly (treat as key exists)
- Add test case for SET NX GET on wrong type

This commit only includes SET command changes, DelEX changes will be
in a separate PR as requested.
std::optional<uint64_t> expire_;
};

class CommandDelEX : public Commander {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Why are you remove it?

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