Home > Back-end >  Spring the boot configuration redis timeout is invalid
Spring the boot configuration redis timeout is invalid

Time:12-25

Spring the boot configuration redis timeout for Spring: redis: timeout: 1000 ms, but the request needs to wait for 14 seconds will get response results, then why, LettuceConnectionFactory is used

CodePudding user response:

Spring. Redis. A timeout redis is connection timeout, request you mean waiting for 14 seconds, the connection redis14 seconds to throw an exception?

CodePudding user response:

reference 1st floor also night reply:
spring. Redis. The timeout is connection redis timeout, request you mean waiting for 14 seconds, the connection redis14 seconds to throw an exception?

Is waiting for 14 seconds to return query results, abnormal left early

CodePudding user response:

refer to the second floor of the development response:
Quote: refer to 1st floor also night reply:
spring. Redis. The timeout is connection redis timeout, request you mean waiting for 14 seconds, the connection redis14 seconds to throw an exception?

Is waiting for 14 seconds to return the query results, exception early

Yes abnormal, only need 14 seconds after the exception is thrown, the result is basically at the same time returned
  • Related