@@ -2,7 +2,7 @@ import NIO
2
2
3
3
// MARK: Static Helpers
4
4
5
- extension RedisCommandExecutor {
5
+ extension RedisClient {
6
6
@usableFromInline
7
7
static func _mapSortedSetResponse(
8
8
_ response: [ RESPValue ] ,
@@ -32,7 +32,7 @@ extension RedisCommandExecutor {
32
32
33
33
// MARK: General
34
34
35
- extension RedisCommandExecutor {
35
+ extension RedisClient {
36
36
/// Adds elements to a sorted set, assigning their score to the values provided.
37
37
///
38
38
/// See [https://redis.io/commands/zadd](https://redis.io/commands/zadd)
@@ -140,7 +140,7 @@ extension RedisCommandExecutor {
140
140
141
141
// MARK: Rank
142
142
143
- extension RedisCommandExecutor {
143
+ extension RedisClient {
144
144
/// Returns the rank (index) of the specified element in a sorted set.
145
145
/// - Note: This treats the ordered set as ordered from low to high.
146
146
/// For the inverse, see `zrevrank(of:in:)`.
@@ -174,7 +174,7 @@ extension RedisCommandExecutor {
174
174
175
175
// MARK: Count
176
176
177
- extension RedisCommandExecutor {
177
+ extension RedisClient {
178
178
/// Returns the number of elements in a sorted set with a score within the range specified.
179
179
///
180
180
/// See [https://redis.io/commands/zcount](https://redis.io/commands/zcount)
@@ -211,7 +211,7 @@ extension RedisCommandExecutor {
211
211
212
212
// MARK: Pop
213
213
214
- extension RedisCommandExecutor {
214
+ extension RedisClient {
215
215
/// Removes elements from a sorted set with the lowest scores.
216
216
///
217
217
/// See [https://redis.io/commands/zpopmin](https://redis.io/commands/zpopmin)
@@ -280,7 +280,7 @@ extension RedisCommandExecutor {
280
280
281
281
// MARK: Increment
282
282
283
- extension RedisCommandExecutor {
283
+ extension RedisClient {
284
284
/// Increments the score of the specified element in a sorted set.
285
285
///
286
286
/// See [https://redis.io/commands/zincrby](https://redis.io/commands/zincrby)
@@ -302,7 +302,7 @@ extension RedisCommandExecutor {
302
302
303
303
// MARK: Intersect and Union
304
304
305
- extension RedisCommandExecutor {
305
+ extension RedisClient {
306
306
/// Calculates the union of two or more sorted sets and stores the result.
307
307
/// - Note: This operation overwrites any value stored at the destination key.
308
308
///
@@ -377,7 +377,7 @@ extension RedisCommandExecutor {
377
377
378
378
// MARK: Range
379
379
380
- extension RedisCommandExecutor {
380
+ extension RedisClient {
381
381
/// Gets the specified range of elements in a sorted set.
382
382
/// - Note: This treats the ordered set as ordered from low to high.
383
383
///
@@ -437,7 +437,7 @@ extension RedisCommandExecutor {
437
437
438
438
// MARK: Range by Score
439
439
440
- extension RedisCommandExecutor {
440
+ extension RedisClient {
441
441
/// Gets elements from a sorted set whose score fits within the range specified.
442
442
/// - Note: This treats the ordered set as ordered from low to high.
443
443
///
@@ -506,7 +506,7 @@ extension RedisCommandExecutor {
506
506
507
507
// MARK: Range by Lexiographical
508
508
509
- extension RedisCommandExecutor {
509
+ extension RedisClient {
510
510
/// Gets elements from a sorted set whose lexiographical values are between the range specified.
511
511
/// - Important: This assumes all elements in the sorted set have the same score. If not, the returned elements are unspecified.
512
512
/// - Note: This treats the ordered set as ordered from low to high.
@@ -570,7 +570,7 @@ extension RedisCommandExecutor {
570
570
571
571
// MARK: Remove
572
572
573
- extension RedisCommandExecutor {
573
+ extension RedisClient {
574
574
/// Removes the specified elements from a sorted set.
575
575
///
576
576
/// See [https://redis.io/commands/zrem](https://redis.io/commands/zrem)
0 commit comments