Enumerations

The following enumerations are available globally.

  • 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
  • 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