RedisZRangeResultOption

public struct RedisZRangeResultOption<ResultType>

A representation of the range of options for the results that can be returned from Sorted Set range operations.

This correlates to the WITHSCORES option in Redis terminology.

  • Returns the scores in addition to the values of elements in a Sorted Set.

    Declaration

    Swift

    public static var valuesAndScores: RedisZRangeResultOption<[(RESPValue, Double)]> { get }
  • Returns only the values of elements in a Sorted Set.

    Declaration

    Swift

    public static var valuesOnly: RedisZRangeResultOption<[RESPValue]> { get }