RedisMessageEncoder
public final class RedisMessageEncoder : MessageToByteEncoder
Encodes outgoing RESPValue
data into a raw ByteBuffer
according to the Redis Serialization Protocol (RESP).
See NIO.MessageToByteEncoder
, RESPTranslator
, and https://redis.io/topics/protocol
-
See
MessageToByteEncoder.OutboundIn
Declaration
Swift
public typealias OutboundIn = RESPValue
-
Undocumented
Declaration
Swift
public init()
-
Encodes the
RedisValue
to bytes, following the RESP specification.See https://redis.io/topics/protocol and
RESPEncoder.encode(data:out:)
Declaration
Swift
public func encode(data: RESPValue, out: inout ByteBuffer) throws