Skip to content

Understanding RedisURI vs TimeoutOptions in Lettuce #2614

Answered by mp911de
wmxl asked this question in Q&A
Discussion options

You must be logged in to vote

There's a bit of history involved. Initially, we had only RedisURI.timeout that was applied in some places (connect timeout, command timeout through the synchronous API but not the async API). TimeoutOptions defines a full set of how to determine a timeout. TimeoutOptions can either apply the command timeout that is set on RedisURI or you can specify a custom TimeoutSource to control timeouts for individual commands.

Timeout starts as soon as the command is dispatched into a connection. That means that a command isn't written to Redis yet when the timeout starts.

On Redis Cluster, a command (such as MGET) is partitioned across hash-slots and Lettuce sends multiple MGET commands with slice…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by wmxl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants