I
I
id_tolik_bugera2016-06-23 13:47:40
Java
id_tolik_bugera, 2016-06-23 13:47:40

Jedis how to set timeout on connection?

How to set a connection timeout to the Jedis database so that after a certain period of time the connection closes itself.
jedis.configSet("timeout", "60");
is not suitable because it applies the parameter to all connections and closes all inactive ones), but I need to close not all, but several that have a timeout.
Maybe someone faced this problem.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question