The following structures are available globally.
This holds the full command message to be sent to Redis, and an
NIO.EventLoopPromiseto be fulfilled when a response has been received.
ImportantThis struct has reference semantics due to the retention of the
public struct RedisCommand
If something goes wrong with a command within Redis, it will respond with an error that is captured and represented by instances of this type.See more
public struct RedisError : LocalizedError
extension RedisError: Equatable, Hashable
extension RedisError: RESPValueConvertible
A representation of a key in Redis.
RedisKeyis a thin wrapper around
String, to provide stronger type-safety at compile-time.
It conforms to
ExpressibleByStringInterpolation, so creating a key is simple:
let key: RedisKey = "foo" // or "\(someVar)"
public struct RedisKey: RESPValueConvertible, RawRepresentable, ExpressibleByStringLiteral, ExpressibleByStringInterpolation, CustomStringConvertible, CustomDebugStringConvertible, Comparable, Hashable, Codable
The system funnel for all
Metricsinteractions from the Redis library.
It is highly recommended to not interact with this directly, and to let the library use it how it sees fit.
There is a nested enum type ofSee more
RedisMetrics.Labelthat is available to query, match, etc. the labels used for all of the
Metricstypes created by the Redis library.
public struct RedisMetrics