Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optional connect timeout for RedisClient & RedisBlockingClient #151

Merged
merged 1 commit into from
Nov 6, 2016

Conversation

stsmedia
Copy link
Contributor

Add optional connect timeout for RedisClient & RedisBlockingClient to avoid blocking all cache calls until default akka TCP timeout kicks in.

Also, changing RedisClientActor instantiation to recommended type safe method.

… avoid blocking all cache calls until default akka TCP timeout kicks in.

Also, changing RedisClientActor instantiation to recommended type safe method.
@coveralls
Copy link

coveralls commented Sep 16, 2016

Coverage Status

Coverage decreased (-0.2%) to 92.286% when pulling 6c9734c on stsmedia:master into f1c1101 on etaty:master.

@jleider
Copy link

jleider commented Nov 2, 2016

Is there any progress on this? Im wondering if this would help our use case of failing gracefully when redis is unavailable. Currently all redis calls take 2 seconds to timeout which is a hardcoded value (https://github.com/etaty/rediscala/blob/master/src/main/scala/redis/actors/RedisWorkerIO.scala#L179) which is quite high especially since our use case is to use redis as a cache.

@jleider
Copy link

jleider commented Nov 2, 2016

This is similar to #28

@etaty etaty merged commit 9b26c2d into etaty:master Nov 6, 2016
@etaty etaty added this to the 1.7.0 milestone Nov 19, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants