Skip to content

Instance Method

withBorrowedClient(_:)

Provides temporary exclusive access to a single Redis client.
func withBorrowedClient<Result>(_ operation: @escaping (any RedisClient) -> EventLoopFuture<Result>) -> EventLoopFuture<Result>

Discussion

See RedisConnectionPool.leaseConnection(_:) for more details.