MCPcopy
hub / github.com/redis/go-redis / zRevRangeBy

Method zRevRangeBy

sortedset_commands.go:602–615  ·  view source on GitHub ↗
(ctx context.Context, zcmd, key string, opt *ZRangeBy)

Source from the content-addressed store, hash-verified

600}
601
602func (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//

Callers 2

ZRevRangeByScoreMethod · 0.95
ZRevRangeByLexMethod · 0.95

Calls 1

NewStringSliceCmdFunction · 0.85

Tested by

no test coverage detected