PHP 인터페이스 Predis\Command\CommandInterface

저자: Daniele Alessandri ([email protected])
파일 보기 프로젝트 열기: tillkruss/redis-object-cache 0 사용 예제들

공개 메소드들

메소드 설명
getArgument ( integer $index ) : mixed | null Gets the argument of the command at the specified index.
getArguments ( ) : array Gets the arguments of the command.
getId ( ) : string Returns the ID of the Redis command. By convention, command identifiers must always be uppercase.
getSlot ( ) : integer | null Returns the assigned slot of the command for clustering distribution.
parseResponse ( string $data ) : mixed Parses a raw response and returns a PHP object.
setArguments ( array $arguments ) Sets the arguments for the command.
setRawArguments ( array $arguments ) Sets the raw arguments for the command without processing them.
setSlot ( integer $slot ) Assign the specified slot to the command for clustering distribution.

메소드 상세

getArgument() 공개 메소드

Gets the argument of the command at the specified index.
public getArgument ( integer $index ) : mixed | null
$index integer Index of the desired argument.
리턴 mixed | null

getArguments() 공개 메소드

Gets the arguments of the command.
public getArguments ( ) : array
리턴 array

getId() 공개 메소드

Returns the ID of the Redis command. By convention, command identifiers must always be uppercase.
public getId ( ) : string
리턴 string

getSlot() 공개 메소드

Returns the assigned slot of the command for clustering distribution.
public getSlot ( ) : integer | null
리턴 integer | null

parseResponse() 공개 메소드

Parses a raw response and returns a PHP object.
public parseResponse ( string $data ) : mixed
$data string Binary string containing the whole response.
리턴 mixed

setArguments() 공개 메소드

Sets the arguments for the command.
public setArguments ( array $arguments )
$arguments array List of arguments.

setRawArguments() 공개 메소드

Sets the raw arguments for the command without processing them.
public setRawArguments ( array $arguments )
$arguments array List of arguments.

setSlot() 공개 메소드

Assign the specified slot to the command for clustering distribution.
public setSlot ( integer $slot )
$slot integer Slot ID.