Per impostare un timeout socket lato client, usa il costruttore Jedis che accetta un argomento timeout.
Non confonderlo con CONFIG SET timeout, che indica a Redis di chiudere le connessioni client inattive. Questa impostazione lato server può causare eccezioni Jedis se i client restano inattivi troppo a lungo.