(ctx context.Context, zcmd, key string, opt *ZRangeBy)
| 600 | } |
| 601 | |
| 602 | func (c cmdable) zRevRangeBy(ctx context.Context, zcmd, key string, opt *ZRangeBy) *StringSliceCmd { |
| 603 | args := []interface{}{zcmd, key, opt.Max, opt.Min} |
| 604 | if opt.Offset != 0 || opt.Count != 0 { |
| 605 | args = append( |
| 606 | args, |
| 607 | "limit", |
| 608 | opt.Offset, |
| 609 | opt.Count, |
| 610 | ) |
| 611 | } |
| 612 | cmd := NewStringSliceCmd(ctx, args...) |
| 613 | _ = c(ctx, cmd) |
| 614 | return cmd |
| 615 | } |
| 616 | |
| 617 | // ZRevRangeByScore returns members in a sorted set within a range of scores in reverse order. |
| 618 | // |
no test coverage detected