Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for PEXPIREAT's options #2027

Merged
merged 3 commits into from
Mar 14, 2022
Merged

Conversation

dogukanteber
Copy link
Contributor

@dogukanteber dogukanteber commented Feb 27, 2022

Pull Request check-list

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

  • Does $ tox pass with this change (including linting)?
  • 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)?
  • Was the change added to CHANGES file?

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

Description of change

closes #1939

self,
name: KeyT,
when: AbsExpiryT,
option: str = None
Copy link
Contributor

Choose a reason for hiding this comment

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

@dogukanteber WDYT about making these options (NX, XX, etc) variables in the function header. IMHO it would watch our other functions.

@codecov-commenter
Copy link

codecov-commenter commented Mar 14, 2022

Codecov Report

Merging #2027 (8d8e2e8) into master (8d949a3) will decrease coverage by 0.11%.
The diff coverage is 35.71%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2027      +/-   ##
==========================================
- Coverage   92.17%   92.05%   -0.12%     
==========================================
  Files         100      100              
  Lines       21024    21064      +40     
==========================================
+ Hits        19378    19391      +13     
- Misses       1646     1673      +27     
Impacted Files Coverage Δ
tests/test_commands.py 98.22% <25.80%> (-0.78%) ⬇️
redis/commands/core.py 85.70% <63.63%> (-0.17%) ⬇️
redis/asyncio/client.py 90.45% <0.00%> (-0.18%) ⬇️
tests/test_cluster.py 98.29% <0.00%> (ø)
redis/asyncio/connection.py 82.77% <0.00%> (+0.11%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8d949a3...8d8e2e8. Read the comment docs.

@dvora-h
Copy link
Collaborator

dvora-h commented Mar 14, 2022

@dogukanteber I pushed a small fix so the options will be consistent with options in other functions (like set etc.), now it's ready and we'll include it in the next release, thank you!

@dvora-h dvora-h merged commit fdf4f1a into redis:master Mar 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support for PEXPIREAT redis-7 options [NX|XX|GT|LT]
4 participants