ClientBootstrap
extension ClientBootstrap
-
Makes a new
ClientBootstrap
instance with a baseline RedisChannel
pipeline for sending and receiving messages in Redis Serialization Protocol (RESP) format.For implementation details, see
RedisMessageEncoder
,RedisByteDecoder
, andRedisCommandHandler
.See also
Channel.addBaseRedisHandlers()
.Declaration
Swift
public static func makeRedisTCPClient(group: EventLoopGroup) -> ClientBootstrap
Parameters
group
The
EventLoopGroup
to create theClientBootstrap
with.Return Value
A TCP connection with the base configuration of a
Channel
pipeline for RESP messages.