API Collection
RedisClient Implementations
Topics
Instance Properties
var eventLoop: any EventLoopTheNIO.EventLoopthat this client operates on.
Instance Methods
func logging(to: Logger) -> any RedisClientTemporarily overrides the default logger for command logs to the provided instance.func psubscribe(to:messageReceiver:onSubscribe:onUnsubscribe:)Subscribes the client to the specified Redis channel name patterns, invoking the provided message receiver each time a message is published to a matching channel.func psubscribe(to: [String], messageReceiver: RedisSubscriptionMessageReceiver, onSubscribe: RedisSubscriptionChangeHandler?, onUnsubscribe: RedisSubscriptionChangeHandler?) -> EventLoopFuture<Void>Subscribes the client to the specified Redis channel name patterns, invoking the provided message receiver each time a message is published to a matching channel.func punsubscribe(from:)Unsubscribes the client from a pattern of Redis channel names from receiving any future published messages.func punsubscribe(from: [String]) -> EventLoopFuture<Void>Unsubscribes the client from a pattern of Redis channel names from receiving any future published messages.func send(command:with:)Sends the desired command with the specified arguments.func send(command: String, with: [RESPValue]) -> EventLoopFuture<RESPValue>Sends the desired command with the specified arguments.func subscribe(to:messageReceiver:onSubscribe:onUnsubscribe:)Subscribes the client to the specified Redis channels, invoking the provided message receiver each time a message is published.func subscribe(to: [RedisChannelName], messageReceiver: RedisSubscriptionMessageReceiver, onSubscribe: RedisSubscriptionChangeHandler?, onUnsubscribe: RedisSubscriptionChangeHandler?) -> EventLoopFuture<Void>Subscribes the client to the specified Redis channels, invoking the provided message receiver each time a message is published.func unsubscribe(from:)Unsubscribes the client from a specific Redis channel from receiving any future published messages.func unsubscribe(from: [RedisChannelName]) -> EventLoopFuture<Void>Unsubscribes the client from a specific Redis channel from receiving any future published messages.