PHP Interface Predis\Connection\ConnectionInterface

Author: Daniele Alessandri ([email protected])
Afficher le fichier Open project: tillkruss/redis-object-cache Interface Usage Examples

Méthodes publiques

Méthode Description
connect ( ) Opens the connection to Redis.
disconnect ( ) Closes the connection to Redis.
executeCommand ( Predis\Command\CommandInterface $command ) : mixed Writes a request for the given command over the connection and reads back the response returned by Redis.
isConnected ( ) : boolean Checks if the connection to Redis is considered open.
readResponse ( Predis\Command\CommandInterface $command ) : mixed Reads the response to the given command from the connection.
writeRequest ( Predis\Command\CommandInterface $command ) Writes the request for the given command over the connection.

Method Details

connect() public méthode

Opens the connection to Redis.
public connect ( )

disconnect() public méthode

Closes the connection to Redis.
public disconnect ( )

executeCommand() public méthode

Writes a request for the given command over the connection and reads back the response returned by Redis.
public executeCommand ( Predis\Command\CommandInterface $command ) : mixed
$command Predis\Command\CommandInterface Command instance.
Résultat mixed

isConnected() public méthode

Checks if the connection to Redis is considered open.
public isConnected ( ) : boolean
Résultat boolean

readResponse() public méthode

Reads the response to the given command from the connection.
public readResponse ( Predis\Command\CommandInterface $command ) : mixed
$command Predis\Command\CommandInterface Command instance.
Résultat mixed

writeRequest() public méthode

Writes the request for the given command over the connection.
public writeRequest ( Predis\Command\CommandInterface $command )
$command Predis\Command\CommandInterface Command instance.