Replies: 1 comment 3 replies
-
Hi @0x079, I believe it is the underlying retry mechanism make it looks like hanging. There are two ways to adjust the retry behavior:
|
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Please correct me if I'm wrong. Currently looks like if the client loses connection to the Redis database, and an uncached key is requested, Rueidis client will just hang there for a long time. Is there a way to control this behavior? For example, return nil immediately when that happens or with a timeout that can be configured?
This is very useful for enabling offline mode so the client will still be able to operate in the event of a redis outage. Otherwise we'll have to bring our own caching layer in front of Rueidis and that leads to a lot of complexity and duplicate caching.
Beta Was this translation helpful? Give feedback.
All reactions