RedisKey

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

A representation of a key in Redis.

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

It conforms to ExpressibleByStringLiteral and ExpressibleByStringInterpolation, so creating a key is simple:

let key: RedisKey = "foo" // or "\(someVar)"