Documentation

ConnectionInterface

Defines a connection object used to communicate with one or multiple Redis servers.

Tags
author

Daniele Alessandri suppakilla@gmail.com

Table of Contents

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.
isConnected()  : bool
Checks if the connection to Redis is considered open.
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

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

isConnected()

Checks if the connection to Redis is considered open.

public isConnected() : bool
Return values
bool

Search results