-
I use the result of PING as part of an app's health endpoint. With JedisPooled it looks like the only way to call PING is to use a protocol command, and the result seems to be an anonymous class. Is there a way to determine whether the command was successful or failed, and to get the "HELLO" response back? Kotlin 1.6.21 import redis.clients.jedis.JedisPooled
import redis.clients.jedis.Protocol
val jedis = JedisPooled("localhost", 6379)
val result = jedis.sendCommand(Protocol.Command.PING, "HELLO")
result.javaClass
>>> class [B |
Beta Was this translation helpful? Give feedback.
Answered by
sazzad16
May 28, 2022
Replies: 1 comment 1 reply
-
Besides that, you can provide
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
dmcauslan
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: