Skip to content

Conversation

@petyaslavova
Copy link
Collaborator

Pull Request check-list

Please make sure to review and check all of these items:

  • Do tests and lints pass with this change?
  • Do the CI tests pass with this change (enable it first in your forked repo and wait for the github action build to finish)?
  • Is the new or changed code fully tested?
  • Is a documentation update included (if this change modifies existing APIs, or introduces new ones)?
  • Is there an example added to the examples folder (if applicable)?

NOTE: these things are not required to open a PR and can be done
afterwards / while the PR is open.

Description of change

Please provide a description of the change here.

@petyaslavova petyaslavova requested a review from Copilot October 30, 2025 08:15
@petyaslavova petyaslavova added the feature New feature label Oct 30, 2025
Copy link
Contributor

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 the Redis MSETEX command, which sets multiple key-value pairs with optional expiration settings. The implementation introduces tests and cluster support for this new command.

  • Adds the DataPersistOptions enum (NX/XX) to control conditional setting behavior
  • Implements the msetex method in redis/commands/core.py with support for various expiration options (ex, px, exat, pxat, keepttl)
  • Adds comprehensive test coverage for both sync and async clients

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 10 comments.

File Description
redis/commands/core.py Adds DataPersistOptions enum and implements the msetex method with expiration and conditional setting options
redis/cluster.py Registers "MSETEX" as a cluster-compatible command
tests/test_commands.py Adds comprehensive test cases for msetex with various expiration options and conditional settings
tests/test_asyncio/test_commands.py Adds async versions of msetex test cases

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@petyaslavova petyaslavova force-pushed the ps_add_key_expiration_to_common_commands branch from 2492b5f to 81abba2 Compare October 31, 2025 16:12
@petyaslavova petyaslavova force-pushed the ps_add_key_expiration_to_common_commands branch from 81abba2 to a24b9c2 Compare October 31, 2025 16:35
@petyaslavova petyaslavova requested a review from Copilot October 31, 2025 16:36
@petyaslavova petyaslavova marked this pull request as ready for review October 31, 2025 16:36
Copy link
Contributor

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

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


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@petyaslavova petyaslavova merged commit 489932d into master Nov 3, 2025
101 of 106 checks passed
@petyaslavova petyaslavova deleted the ps_add_key_expiration_to_common_commands branch November 3, 2025 19:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants