PHP Класс Predis\Command\ScriptCommand

Автор: Daniele Alessandri ([email protected])
Наследование: extends ServerEvalSHA
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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 )

Защищенные методы

Метод Описание
getKeysCount ( ) : integer Specifies the number of arguments that should be considered as keys.

Описание методов

getEvalArguments() публичный Метод

Returns arguments for EVAL command.
public getEvalArguments ( ) : array
Результат array

getEvalCommand() публичный Метод

Returns the equivalent EVAL command as a raw command instance.
public getEvalCommand ( ) : RawCommand
Результат RawCommand

getId() публичный Метод

public getId ( )

getKeys() публичный Метод

Returns the elements from the arguments that are identified as keys.
public getKeys ( ) : array
Результат array

getKeysCount() защищенный Метод

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
Результат integer

getScript() абстрактный публичный Метод

Gets the body of a Lua script.
abstract public getScript ( ) : string
Результат string

getScriptHash() публичный Метод

Calculates the SHA1 hash of the body of the script.
public getScriptHash ( ) : string
Результат string SHA1 hash.

setArguments() публичный Метод

public setArguments ( array $arguments )
$arguments array