PHP Class Predis\Connection\WebdisConnection
Some features are not yet available or they simply cannot be implemented:
- Pipelining commands.
- Publish / Subscribe.
- MULTI / EXEC transactions (not yet supported by Webdis).
The connection parameters supported by this class are:
- scheme: must be 'http'.
- host: hostname or IP address of the server.
- port: TCP port of the server.
- timeout: timeout to perform the connection.
- user: username for authentication.
- pass: password for authentication.
Afficher le fichier
Open project: nrk/predis
Class Usage Examples
Méthodes publiques
Méthodes protégées
Méthode |
Description |
|
feedReader ( resource $resource, string $buffer ) : integer |
Feeds the phpredis reader resource with the data read from the network. |
|
getCommandId ( Predis\Command\CommandInterface $command ) : string |
Checks if the specified command is supported by this connection class. |
|
getErrorHandler ( ) : Closure |
Returns the handler used by the protocol reader for error responses. |
|
getStatusHandler ( ) : Closure |
Returns the handler used by the protocol reader for inline responses. |
|
Private Methods
Method Details
__construct()
public méthode
public __construct ( Predis\Connection\ParametersInterface $parameters ) |
$parameters |
Predis\Connection\ParametersInterface |
Initialization parameters for the connection. |
__destruct()
public méthode
Frees the underlying cURL and protocol reader resources when the garbage
collector kicks in.
__toString()
public méthode
__wakeup()
public méthode
addConnectCommand()
public méthode
public addConnectCommand ( Predis\Command\CommandInterface $command ) |
$command |
Predis\Command\CommandInterface |
|
disconnect()
public méthode
executeCommand()
public méthode
public executeCommand ( Predis\Command\CommandInterface $command ) |
$command |
Predis\Command\CommandInterface |
|
feedReader()
protected méthode
Feeds the phpredis reader resource with the data read from the network.
getCommandId()
protected méthode
Checks if the specified command is supported by this connection class.
protected getCommandId ( Predis\Command\CommandInterface $command ) : string |
$command |
Predis\Command\CommandInterface |
Command instance. |
Résultat |
string |
|
getErrorHandler()
protected méthode
Returns the handler used by the protocol reader for error responses.
getParameters()
public méthode
getResource()
public méthode
getStatusHandler()
protected méthode
Returns the handler used by the protocol reader for inline responses.
isConnected()
public méthode
readResponse()
public méthode
public readResponse ( Predis\Command\CommandInterface $command ) |
$command |
Predis\Command\CommandInterface |
|
writeRequest()
public méthode
public writeRequest ( Predis\Command\CommandInterface $command ) |
$command |
Predis\Command\CommandInterface |
|