PHP Class Predis\Command\ScriptCommand

Author: Daniele Alessandri ([email protected])
Inheritance: extends ServerEvalSHA
Afficher le fichier Open project: nrk/predis Class Usage Examples

Méthodes publiques

Méthode Description
getEvalArguments ( ) : array Returns arguments for EVAL command.
getEvalCommand ( ) : RawCommand Returns the equivalent EVAL command as a raw command instance.
getId ( )
getKeys ( ) : array Returns the elements from the arguments that are identified as keys.
getScript ( ) : string Gets the body of a Lua script.
getScriptHash ( ) : string Calculates the SHA1 hash of the body of the script.
setArguments ( array $arguments )

Méthodes protégées

Méthode Description
getKeysCount ( ) : integer Specifies the number of arguments that should be considered as keys.

Method Details

getEvalArguments() public méthode

Returns arguments for EVAL command.
public getEvalArguments ( ) : array
Résultat array

getEvalCommand() public méthode

Returns the equivalent EVAL command as a raw command instance.
public getEvalCommand ( ) : RawCommand
Résultat RawCommand

getId() public méthode

public getId ( )

getKeys() public méthode

Returns the elements from the arguments that are identified as keys.
public getKeys ( ) : array
Résultat array

getKeysCount() protected méthode

The default behaviour for the base class is to return 0 to indicate that all the elements of the arguments array should be considered as keys, but subclasses can enforce a static number of keys.
protected getKeysCount ( ) : integer
Résultat integer

getScript() abstract public méthode

Gets the body of a Lua script.
abstract public getScript ( ) : string
Résultat string

getScriptHash() public méthode

Calculates the SHA1 hash of the body of the script.
public getScriptHash ( ) : string
Résultat string SHA1 hash.

setArguments() public méthode

public setArguments ( array $arguments )
$arguments array