-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Add support for BZMPOP, BZPOPMIN and BZPOPMAX #240
Conversation
Codecov ReportAttention:
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## master #240 +/- ##
==========================================
- Coverage 94.16% 94.12% -0.04%
==========================================
Files 85 87 +2
Lines 5178 5279 +101
Branches 487 496 +9
==========================================
+ Hits 4876 4969 +93
- Misses 178 183 +5
- Partials 124 127 +3 ☔ View full report in Codecov by Sentry. |
d075e7c
to
579d1d8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
c7ae0f5
to
51b5feb
Compare
Fix some typos in the markdown files and run `dotnet format` on existing code.
Change the settings so that documentation is included in the build.
4aafc50
to
5870af6
Compare
5870af6
to
410c474
Compare
Add support for the BZMPOP, BZPOPMIN, BZPOPMAX commands. Issues redis#232, redis#233 and redis#234. These commands are blocking on the server, so they go against the current policy of the StackExchange.Redis library. Therefore make it obvious in the code documentation that attention must be given to the timeout in the connection multiplexer, client-side. The StackExchange.Redis library already defines a type for the payload returned by BZMPOP (which is the same as for ZMPOP), namely the SortedSetPopResult class. However, the constructor of that class is internal in the library, so we can't create instances of it. Therefore roll our out type for a <value, score> pair, and use Tuple to pair a key with a list of such <value, score> pairs. Instead of using Order to signal from which end of the sorted set to pop, define a MinMaxModifier enum, which more clearly expresses the intention and maps directly to the Redis command being executed.
410c474
to
8948d82
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
Add support for the BZMPOP, BZPOPMIN, BZPOPMAX commands.
Issues #232, #233 and #234.