PHP 클래스 Predis\Command\ScriptCommand

저자: Daniele Alessandri ([email protected])
상속: extends ServerEvalSHA
파일 보기 프로젝트 열기: nrk/predis 1 사용 예제들

공개 메소드들

메소드 설명
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