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

Method ZRevRange

sortedset_commands.go:588–592  ·  view source on GitHub ↗

ZRevRange returns members in a sorted set within a range of indexes in reverse order. Deprecated: Use ZRangeArgs with Rev option instead as of Redis 6.2.0.

(ctx context.Context, key string, start, stop int64)

Source from the content-addressed store, hash-verified

586//
587// Deprecated: Use ZRangeArgs with Rev option instead as of Redis 6.2.0.
588func (c cmdable) ZRevRange(ctx context.Context, key string, start, stop int64) *StringSliceCmd {
589 cmd := NewStringSliceCmd(ctx, "zrevrange", key, start, stop)
590 _ = c(ctx, cmd)
591 return cmd
592}
593
594// ZRevRangeWithScores according to the Redis documentation, if member does not exist
595// in the sorted set or key does not exist, it will return a redis.Nil error.

Callers

nothing calls this directly

Calls 1

NewStringSliceCmdFunction · 0.85

Tested by

no test coverage detected