Enumerations

The following enumerations are available globally.

  • A list of patterns or channels that a Pub/Sub subscription change is targetting.

    See RedisChannelName, PSUBSCRIBE and SUBSCRIBE

    Use the values property to quickly access the underlying list of the target for any purpose that requires a the String values.

    See more

    Declaration

    Swift

    public enum RedisSubscriptionTarget : Equatable, CustomDebugStringConvertible
  • Represents a range bound for use with the Redis SortedSet commands related to element scores.

    This type conforms to ExpressibleByFloatLiteral and ExpressibleByIntegerLiteral, which will initialize to an .inclusive bound.

    For example:

    let literalBound: RedisZScoreBound = 3 // .inclusive(3)
    let otherLiteralBound: RedisZScoreBound = 3.0 // .inclusive(3)
    let exclusiveBound = RedisZScoreBound.exclusive(4)
    
    See more

    Declaration

    Swift

    public enum RedisZScoreBound:
        CustomStringConvertible,
        ExpressibleByFloatLiteral, ExpressibleByIntegerLiteral
  • Represents a range bound for use with the Redis SortedSet lexiographical commands to compare values.

    Cases must be explicitly declared, with wrapped values conforming to CustomStringConvertible.

    The cases .negativeInfinity and .positiveInfinity represent the special characters in Redis of - and + respectively. These are constants for absolute lower and upper value bounds that are always treated as inclusive.

    See Redis’ string comparison documentation.

    See more

    Declaration

    Swift

    public enum RedisZLexBound<Value> : CustomStringConvertible where Value : CustomStringConvertible
  • The result of a SET command.

    See more

    Declaration

    Swift

    public enum RedisSetCommandResult : Hashable
  • RedisConnectionPoolSize controls how the maximum number of connections in a pool are interpreted.

    See more

    Declaration

    Swift

    public enum RedisConnectionPoolSize
  • 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
  • The system funnel for all Logging static details such as labels, Logging.Logger prototypes, and metadata keys used by RediStack.

    See more

    Declaration

    Swift

    public enum RedisLogging