Quit is actually a redis command that tell the server to close the connection and makes the client also close the connection.
Disconnect is just a client disconnecting the socket.
You should use, unless for some specific reason, quit, because it is more elegant.
Although I am not aware of real differences between them.
Jonathan
--
You received this message because you are subscribed to the Google Groups "Redis DB" group.
To unsubscribe from this group and stop receiving emails from it, send an email to redis-db+u...@googlegroups.com.
To post to this group, send email to redi...@googlegroups.com.
Visit this group at http://groups.google.com/group/redis-db.
For more options, visit https://groups.google.com/groups/opt_out.
When I changed it to jedis.disconnect(), it worked fine. Would you have any clue?redis.clients.jedis.exceptions.JedisConnectionException: It seems like server has closed the connection.
Seems like you were doing a quit, but connection was already gone.
Maybe you left the idle for a long time and then issued a 'quit'?
# Close the connection after a client is idle for N seconds (0 to disable)
timeout 0
JedisConnectionExceptionsrc/redis-server sentinel.conf --sentinel