withSuspendingRedisPool
suspend fun <T> RedisClient.withSuspendingRedisPool(printStackTrace: Boolean = false, block: suspend (RedisClient?) -> T): T
Suspending variant of withRedisPool. Executes a suspending block with this RedisClient, passing null if the connection fails.
Extension function on RedisClient.
Return
the result of block
Parameters
printStackTrace
if true, logs the full stack trace on connection failure
block
the suspending operation to execute; receives null on connection failure
Type Parameters
T
the return type of the block