RedisCommand
public struct RedisCommand
The NIO.ChannelOutboundHandler.OutboundIn
type for RedisCommandHandler
.
This holds the full command message to be sent to Redis, and an NIO.EventLoopPromise
to be fulfilled when a response has been received.
Important
This struct has reference semantics due to the retention of theNIO.EventLoopPromise
.
-
A message waiting to be sent to Redis. A full message contains a command keyword and its arguments stored as a single
RESPValue.array
.Declaration
Swift
public let message: RESPValue
-
A promise to be fulfilled with the sent message’s response from Redis.
Declaration
Swift
public let responsePromise: EventLoopPromise<RESPValue>
-
Undocumented
Declaration
Swift
public init(message: RESPValue, responsePromise promise: EventLoopPromise<RESPValue>)