how to set jedis blockingSocketTimeoutMillis?
in our project, we need to use lua script, but the default timeoutmillis is 0, which means to block forever;
Question : how to set blockingSocketTimeoutMillis in spring-data-redis?
There's no mechanism to alter DefaultJedisClientConfig (implementing JedisClientConfig).
JedisClientConfig carries a lot of per-connection details such as the database or authentication credentials that conflict with Spring Data Redis' RedisConfiguration types that define authentication and database details.
Out of curiosity, why don't you use the Lettuce driver that has a configuration of TimeoutSource to supply timeouts on a per-command basis where you could define a timeout specific to your Lua command?
There's no mechanism to alter
DefaultJedisClientConfig(implementingJedisClientConfig).
JedisClientConfigcarries a lot of per-connection details such as the database or authentication credentials that conflict with Spring Data Redis'RedisConfigurationtypes that define authentication and database details.Out of curiosity, why don't you use the Lettuce driver that has a configuration of
TimeoutSourceto supply timeouts on a per-command basis where you could define a timeout specific to your Lua command?
since the issue (https://github.com/lettuce-io/lettuce-core/issues/2082) of lettuce has not been well solved, to be on the safe side, we choose jedis
Mechanism to customize JedisClientConfig is also required to provide custom credentialsProvider required for implementing cloud identity based authentication.