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 more blocking commands #253

Merged
merged 9 commits into from
Feb 22, 2024

Conversation

gerzse
Copy link
Contributor

@gerzse gerzse commented Feb 15, 2024

Add support for BLPOP, BRPOP, BLMPOP.

@gerzse gerzse requested a review from shacharPash February 15, 2024 10:24
@codecov-commenter
Copy link

codecov-commenter commented Feb 15, 2024

Codecov Report

Attention: 3 lines in your changes are missing coverage. Please review.

Comparison is base (91fd35c) 94.12% compared to head (0e93bde) 94.22%.

Files Patch % Lines
...tack/CoreCommands/DataTypes/RedisValueWithScore.cs 0.00% 3 Missing ⚠️

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #253      +/-   ##
==========================================
+ Coverage   94.12%   94.22%   +0.09%     
==========================================
  Files          87       87              
  Lines        5279     5370      +91     
  Branches      496      503       +7     
==========================================
+ Hits         4969     5060      +91     
- Misses        183      184       +1     
+ Partials      127      126       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

The current naming for the blocking commands does not feel right. For
example "BzmPop", it feels like there are no naming rules. So rename
existing methods by this rule: Use capital letters at the beginning of
human-readable words, e.g. "Pop", and also use capital letters where the
Redis command has a single letter, e.g. "B", which stands for
"Blocking", "Z" which stands for "Set" and "M" which stands for "Multi".
So the new name is "BZMPop".

It's still a good time to do such renaming, because these commands have
not been released. Also it is a crucial moment to get the naming as
right as possible, for the same reason.
@gerzse gerzse force-pushed the add-more-blocking-commands branch from aff2277 to c6ccaf0 Compare February 15, 2024 12:12
[SkipIfRedis(Is.OSSCluster, Comparison.LessThan, "7.0.0")]
public void TestBLMPop()
{
var redis = ConnectionMultiplexer.Connect("localhost");
Copy link
Contributor

@shacharPash shacharPash Feb 19, 2024

Choose a reason for hiding this comment

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

We should use redisFixture.Redis instead of this (applies to all tests)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

True. I updated to use the fixture everywhere in CoreTests.

@shacharPash shacharPash merged commit db17b89 into redis:master Feb 22, 2024
16 checks passed
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.

3 participants