vapor / redis

Vapor provider for RediStack
MIT License
458 stars 57 forks source link

add config option for connection retry timeout #169

Closed Mordil closed 3 years ago

Mordil commented 3 years ago

Add support for changing the connection retry timeout from the default of "immediately" to any NIO.TimeAmount

This is configurable on the RedisConfiguration.pool property:

// wait 5 seconds while the pool tries to find an available connection before failing commands
app.redis.configuration?.pool.connectionRetryTimeout = .seconds(5)
tanner0101 commented 3 years ago

These changes are now available in 4.0.0-beta.6.2