Enumerations

The following enumerations are available globally.

  • The supported methods for aggregating results from the zunionstore or zinterstore commands in Redis.

    For more information on these values, see https://redis.io/commands/zunionstore https://redis.io/commands/zinterstore

    See more

    Declaration

    Swift

    public enum RedisSortedSetAggregateMethod : String
  • A representation of a Redis Serialization Protocol (RESP) primitive value.

    This enum representation should be used only as a temporary intermediate representation of values, and should be sent to a Redis server or converted to Swift types as soon as possible.

    Redis servers expect a single message packed into an .array, with all elements being .bulkString representations of values. As such, all initializers convert to .bulkString representations, as well as default conformances for RESPValueConvertible.

    Each case of this type is a different listing in the RESP specification, and several computed properties are available to consistently convert values into Swift types.

    See: https://redis.io/topics/protocol

    See more

    Declaration

    Swift

    public enum RESPValue
    extension RESPValue: CustomStringConvertible
    extension RESPValue: Equatable
    extension RESPValue: RESPValueConvertible
  • When working with RedisClient, runtime errors can be thrown to indicate problems with connection state, decoding assertions, or otherwise.

    See more

    Declaration

    Swift

    public enum RedisClientError : LocalizedError