Hello,
I am new to Redis, everything works well except when I am waiting too much time between two calls to Redis, I am getting an unexpected end of stream ...
Here is the sample code :
JedisPoolConfig conf = new JedisPoolConfig();
pool = new JedisPool(conf, REDIS_HOST, REDIS_PORT, 0, REDIS_PWD);
Jedis jedis = pool.getResource();
try {
while (true) {
jedis.incr("test18");
Thread.sleep(1000 * 60 * 6); // some pending job ...
}
} catch (Exception e) {
e.printStackTrace();
}
I tried to use setMinEvictableIdleTimeMillis and setTimeBetweenEvictionRunsMillis without any success ...
Is there a way to extend this time limit ? could it be a server side parameter ?
Thanks
Best Regards
Bertrand