Skip to content

Getting PING response with JedisPooled #3003

Answered by sazzad16
dmcauslan asked this question in Q&A
Discussion options

You must be logged in to vote

SafeEncoder.encode((byte[]) result) should give you the "HELLO".


Besides that, you can provide PooledConnectionProvider with which would have more control. Here is the Java code:

PooledConnectionProvider provider = new PooledConnectionProvider(...);
JedisPooled jedis = new JedisPooled(provider);
try (Connection connection = provider.getConnection()) {
  connection.ping();
}

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@dmcauslan
Comment options

Answer selected by dmcauslan
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