PHP Interface Predis\ClientInterface

All the commands exposed by the client generally have the same signature as described by the Redis documentation, but some of them offer an additional and more friendly interface to ease programming which is described in the following list of methods:
Author: Daniele Alessandri ([email protected])
Afficher le fichier Open project: nrk/predis Interface Usage Examples

Méthodes publiques

Méthode Description
__call ( string $method, array $arguments ) : mixed Creates a Redis command with the specified arguments and sends a request to the server.
connect ( ) Opens the underlying connection to the server.
createCommand ( string $method, array $arguments = [] ) : Predis\Command\CommandInterface Creates a new instance of the specified Redis command.
disconnect ( ) Closes the underlying connection from the server.
executeCommand ( Predis\Command\CommandInterface $command ) : mixed Executes the specified Redis command.
getCommandFactory ( ) : Predis\Command\FactoryInterface Returns the command factory used by the client.
getConnection ( ) : Predis\Connection\ConnectionInterface Returns the underlying connection instance.
getOptions ( ) : Predis\Configuration\OptionsInterface Returns the client options specified upon initialization.

Method Details

__call() public méthode

Creates a Redis command with the specified arguments and sends a request to the server.
public __call ( string $method, array $arguments ) : mixed
$method string Command ID.
$arguments array Arguments for the command.
Résultat mixed

connect() public méthode

Opens the underlying connection to the server.
public connect ( )

createCommand() public méthode

Creates a new instance of the specified Redis command.
public createCommand ( string $method, array $arguments = [] ) : Predis\Command\CommandInterface
$method string Command ID.
$arguments array Arguments for the command.
Résultat Predis\Command\CommandInterface

disconnect() public méthode

Closes the underlying connection from the server.
public disconnect ( )

executeCommand() public méthode

Executes the specified Redis command.
public executeCommand ( Predis\Command\CommandInterface $command ) : mixed
$command Predis\Command\CommandInterface Command instance.
Résultat mixed

getCommandFactory() public méthode

Returns the command factory used by the client.
public getCommandFactory ( ) : Predis\Command\FactoryInterface
Résultat Predis\Command\FactoryInterface

getConnection() public méthode

Returns the underlying connection instance.
public getConnection ( ) : Predis\Connection\ConnectionInterface
Résultat Predis\Connection\ConnectionInterface

getOptions() public méthode

Returns the client options specified upon initialization.
public getOptions ( ) : Predis\Configuration\OptionsInterface
Résultat Predis\Configuration\OptionsInterface