Documentation

NodeConnectionInterface extends ConnectionInterface

Defines a connection used to communicate with a single Redis node.

Tags
author

Daniele Alessandri suppakilla@gmail.com

Table of Contents

__toString()  : string
Returns a string representation of the connection.
addConnectCommand()  : mixed
Pushes the given command into a queue of commands executed when establishing the actual connection to Redis.
connect()  : mixed
Opens the connection to Redis.
disconnect()  : mixed
Closes the connection to Redis.
executeCommand()  : mixed
Writes a request for the given command over the connection and reads back the response returned by Redis.
getParameters()  : ParametersInterface
Returns the parameters used to initialize the connection.
getResource()  : mixed
Returns the underlying resource used to communicate with Redis.
isConnected()  : bool
Checks if the connection to Redis is considered open.
read()  : mixed
Reads a response from the server.
readResponse()  : mixed
Reads the response to the given command from the connection.
writeRequest()  : mixed
Writes the request for the given command over the connection.

Methods

__toString()

Returns a string representation of the connection.

public __toString() : string
Return values
string

addConnectCommand()

Pushes the given command into a queue of commands executed when establishing the actual connection to Redis.

public addConnectCommand(CommandInterface $command) : mixed
Parameters
$command : CommandInterface

Instance of a Redis command.

Return values
mixed

connect()

Opens the connection to Redis.

public connect() : mixed
Return values
mixed

disconnect()

Closes the connection to Redis.

public disconnect() : mixed
Return values
mixed

executeCommand()

Writes a request for the given command over the connection and reads back the response returned by Redis.

public executeCommand(CommandInterface $command) : mixed
Parameters
$command : CommandInterface

Command instance.

Return values
mixed

getResource()

Returns the underlying resource used to communicate with Redis.

public getResource() : mixed
Return values
mixed

isConnected()

Checks if the connection to Redis is considered open.

public isConnected() : bool
Return values
bool

Search results