Connects to the Redis
server with provided host and port.
Connects to the Redis
server with provided host and port.
if unable to connect
Returns the currently set read/write timeout of this connection.
Returns the currently set read/write timeout of this connection.
return the current timeout, can be infinite
Disconnects from the Redis
server.
Disconnects from the Redis
server.
if an error occurs while disconnecting
Returns true if the connection is connected to a Redis
server, false otherwise
Returns true if the connection is connected to a Redis
server, false otherwise
true if the connection is connected to a Redis
server, false otherwise
Reads count
bytes from the input stream and optionally consumes a
CRLF (without returning it).
Reads count
bytes from the input stream and optionally consumes a
CRLF (without returning it).
the number of bytes to read
when true, reads a CRLF after having read count
bytes
the read bytes
if any other error occurs
ConnectionTimeoutExceptionif a timeout occurs while trying to read
Reads the next line from the input stream (delimited by a CRLF) without returning the end line delimiter
Reads the next line from the input stream (delimited by a CRLF) without returning the end line delimiter
the read bytes
if any other error occurs
ConnectionTimeoutExceptionif a timeout occurs while trying to read
Diconnects and reconnects
Diconnects and reconnects
if an error occurs
Restores the connection timeout value to the original configured value
Sets the read/write timeout of this connection.
Sets the read/write timeout of this connection.
the timeout's duration, can be infinite
Writes data
to the output stream.
Writes data
to the output stream.
if any other error occurs
ConnectionTimeoutExceptionif a timeout occurs while trying to write
Represents a connection to a
Redis
server.