Difference between Redis max-wait and timeout

Viewed 816

I can see two properties in my spring boot application. Which uses Redis for session storage

  • spring.redis.jedis.pool.max-wait
  • spring.redis.timeout

What is the difference between these two?

1 Answers

From the Spring Boot reference documentation:

  • spring.redis.jedis.pool.max-wait: Maximum amount of time a connection allocation should block before throwing an exception when the pool is exhausted.
  • spring.redis.timeout: Read timeout.

Since you mention session storage, you may also want to be aware of spring.session.timeout which configures the session timeout.

Related