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

isConnected() on interface level #20

Closed
nklasens opened this issue Jul 14, 2010 · 1 comment
Closed

isConnected() on interface level #20

nklasens opened this issue Jul 14, 2010 · 1 comment

Comments

@nklasens
Copy link

It would be nice to have a way to check if the JRedis interfaces are connected to the server. I am implementing consistent hashing over multiple servers, but I don't have a way in the client to check if the server is present. I extended some classes now to delegate to org.jredis.ri.alphazero.connection.ConnectionBase.isConnected(), but it would be nice if that is already in jredis itself

@alphazero
Copy link
Owner

The semantics of a on-demand connector are somewhat problematic and its not clear what is gained. (See response to your other comment). There is also 0 information gain in using jredis.isConnect() vs jredis.ping().

This issue was closed.
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

No branches or pull requests

2 participants