Redis Documentation

Structure Redis​ID

public struct RedisID: Hashable,
                       Codable,
                       RawRepresentable,
                       ExpressibleByStringLiteral,
                       ExpressibleByStringInterpolation,
                       CustomStringConvertible,
                       Comparable  

A type-safe representation of a String representing individual identifiers of separate Redis connections and configurations.

It is recommended to define static extensions for your definitions to make it easier at call sites to reference them.

For example:

extension RedisID { static let oceanic = RedisID("oceanic") }
app.redis(.oceanic) // Application.Redis instance
%7 RedisID RedisID RawRepresentable RawRepresentable RedisID->RawRepresentable ExpressibleByStringLiteral ExpressibleByStringLiteral RedisID->ExpressibleByStringLiteral Codable Codable RedisID->Codable CustomStringConvertible CustomStringConvertible RedisID->CustomStringConvertible Comparable Comparable RedisID->Comparable Hashable Hashable RedisID->Hashable ExpressibleByStringInterpolation ExpressibleByStringInterpolation RedisID->ExpressibleByStringInterpolation

Conforms To

Codable
Comparable
CustomStringConvertible
ExpressibleByStringInterpolation
ExpressibleByStringLiteral
Hashable
RawRepresentable

Initializers

init(string​Literal:​)

public init(stringLiteral: String)  

init(raw​Value:​)

public init(rawValue: String)  

init(_:​)

public init(_ string: String)  

Properties

raw​Value

public let rawValue: String

description

public var description: String  

`default`

public static let `default`: RedisID = "default"

Operators

<

public static func < (lhs: RedisID, rhs: RedisID) -> Bool