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

Method ZRevRangeByLex

sortedset_commands.go:627–629  ·  view source on GitHub ↗

ZRevRangeByLex returns members in a sorted set within a lexicographical range in reverse order. Deprecated: Use ZRangeArgs with Rev and ByLex options instead as of Redis 6.2.0.

(ctx context.Context, key string, opt *ZRangeBy)

Source from the content-addressed store, hash-verified

625//
626// Deprecated: Use ZRangeArgs with Rev and ByLex options instead as of Redis 6.2.0.
627func (c cmdable) ZRevRangeByLex(ctx context.Context, key string, opt *ZRangeBy) *StringSliceCmd {
628 return c.zRevRangeBy(ctx, "zrevrangebylex", key, opt)
629}
630
631func (c cmdable) ZRevRangeByScoreWithScores(ctx context.Context, key string, opt *ZRangeBy) *ZSliceCmd {
632 args := []interface{}{"zrevrangebyscore", key, opt.Max, opt.Min, "withscores"}

Callers

nothing calls this directly

Calls 1

zRevRangeByMethod · 0.95

Tested by

no test coverage detected