Open prvn opened 8 years ago
actually, it willl close the socket, but when you issue another redis command, it will try to reconnect.
`def send[A](command: String, args: Seq[Any])(result: => A)(implicit format: Format): A = try { write(Commands.multiBulk(command.getBytes("UTF-8") +: (args map (format.apply)))) result } catch { case e: RedisConnectionException => if (reconnect) send(command, args)(result) else throw e case e: SocketException => if (reconnect) send(command, args)(result) else throw e }
def send[A](command: String)(result: => A): A = try { write(Commands.multiBulk(List(command.getBytes("UTF-8")))) result } catch { case e: RedisConnectionException => if (reconnect) send(command)(result) else throw e case e: SocketException => if (reconnect) send(command)(result) else throw e }`
So, how to disable reconnect option or can I force disconnect?
I am having trouble trying to disconnect from Redis. Here is what I am doing
Even after the disconnect, the client still works ?