RedisChannelName

public struct RedisChannelName:
    RESPValueConvertible,
    RawRepresentable,
    ExpressibleByStringLiteral,
    ExpressibleByStringInterpolation,
    CustomStringConvertible, CustomDebugStringConvertible,
    Comparable, Hashable, Codable

A representation of a Redis Pub/Sub channel.

RedisChannelName is a thin wrapper around String, to provide stronger type-safety at compile time.

It conforms to ExpressibleByStringLiteral and ExpressibleByStringInterpolation, so creating an instance is simple:

let channel: RedisChannelName = "channel1" // or "\(channelNameVariable)"