问题解决:io.lettuce.core.RedisCommandTimeoutException: Command timed out after

surroundings:

spring-boot-starter 2.x 和 sprig-data-starter-data-redis 2.x

In use

connection.bRPop(timeout, rawKey);

In the method, if the timeout here is greater than the spring.redis.timeout of the springboot configuration file, an exception io.lettuce.core.RedisCommandTimeoutException: Command timed out after will occur.

So the solution is that the timeout should not exceed the timeout of the connection pool.

Guess you like

Origin blog.csdn.net/u014108439/article/details/103270050