You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add support for BZMPOP, BZPOPMIN and BZPOPMAX (#240)
* Formatting and typos
Fix some typos in the markdown files and run `dotnet format` on existing
code.
* Include documentation in the build
Change the settings so that documentation is included in the build.
* Add support for BZMPOP, BZPOPMIN and BZPOPMAX
Add support for the BZMPOP, BZPOPMIN, BZPOPMAX commands.
Issues #232, #233 and #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.
---------
Co-authored-by: Gabriel Erzse <[email protected]>
Copy file name to clipboardexpand all lines: CONTRIBUTING.md
+3-2
Original file line number
Diff line number
Diff line change
@@ -35,7 +35,7 @@ Here's how to get started with your code contribution:
35
35
3. Write your tests
36
36
37
37
4. Use the `docker run -p 6379:6379 -it redis/redis-stack-server:edge` as your local environment for running the functional tests. You can also use Development Container as described below.
38
-
5. Run dotnet format to make sure your code is formatted
38
+
5. Run `dotnet format` to make sure your code is formatted
39
39
6. Make sure your tests pass using `dotnet test`
40
40
7. Open a pull request
41
41
@@ -121,6 +121,7 @@ e.g. :
121
121
```bash
122
122
dotnet test --environment "REDIS_CLUSTER=127.0.0.1:16379" --environment "NUM_REDIS_CLUSTER_NODES=6"
123
123
```
124
+
124
125
## How to Report a Bug
125
126
126
127
### Security Vulnerabilities
@@ -145,7 +146,7 @@ issue, so if you're unsure, just email [us](mailto:[email protected]).
145
146
When filing an issue, make sure to answer these five questions:
Copy file name to clipboardexpand all lines: README.md
+3-1
Original file line number
Diff line number
Diff line change
@@ -31,15 +31,17 @@ This project builds on [StackExchange.Redis](https://github.com/StackExchange/St
31
31
The complete documentation for Redis module commands can be found at the [Redis commands website](https://redis.io/commands/).
32
32
33
33
### Redis OSS commands
34
+
34
35
You can use Redis OSS commands in the same way as you use them in [StackExchange.Redis](https://github.com/StackExchange/StackExchange.Redis).
35
36
36
37
### Stack commands
38
+
37
39
Each module has a command class with its own commands.
40
+
38
41
The supported modules are [Search](https://redis.io/commands/?group=search), [JSON](https://redis.io/commands/?group=json), [TimeSeries](https://redis.io/commands/?group=timeseries), [Bloom Filter](https://redis.io/commands/?group=bf), [Cuckoo Filter](https://redis.io/commands/?group=cf), [T-Digest](https://redis.io/commands/?group=tdigest), [Count-min Sketch](https://redis.io/commands/?group=cms), and [Top-K](https://redis.io/commands/?group=topk).
39
42
40
43
**Note:** RedisGraph support has been deprecated starting from Redis Stack version 7.2. For more information, please refer to [this blog post](https://redis.com/blog/redisgraph-eol/).
0 commit comments