PHP 클래스 Predis\Command\Processor\KeyPrefixProcessor

저자: Daniele Alessandri ([email protected])
상속: implements Predis\Command\Processor\ProcessorInterface
파일 보기 프로젝트 열기: tillkruss/redis-object-cache 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( string $prefix )
__toString ( )
all ( Predis\Command\CommandInterface $command, string $prefix ) Applies the specified prefix to all the arguments.
evalKeys ( Predis\Command\CommandInterface $command, string $prefix ) Applies the specified prefix to the keys of an EVAL-based command.
first ( Predis\Command\CommandInterface $command, string $prefix ) Applies the specified prefix only the first argument.
georadius ( Predis\Command\CommandInterface $command, string $prefix ) Applies the specified prefix to the key of a GEORADIUS command.
getPrefix ( ) : string Gets the current prefix.
interleaved ( Predis\Command\CommandInterface $command, string $prefix ) Applies the specified prefix only to even arguments in the list.
migrate ( Predis\Command\CommandInterface $command, string $prefix ) Applies the specified prefix to the key of a MIGRATE command.
process ( Predis\Command\CommandInterface $command )
setCommandHandler ( string $commandID, mixed $callback = null ) Sets an handler for the specified command ID.
setPrefix ( string $prefix ) Sets a prefix that is applied to all the keys.
skipFirst ( Predis\Command\CommandInterface $command, string $prefix ) Applies the specified prefix to all the arguments but the first one.
skipLast ( Predis\Command\CommandInterface $command, string $prefix ) Applies the specified prefix to all the arguments but the last one.
sort ( Predis\Command\CommandInterface $command, string $prefix ) Applies the specified prefix to the keys of a SORT command.
zsetStore ( Predis\Command\CommandInterface $command, string $prefix ) Applies the specified prefix to the keys of Z[INTERSECTION|UNION]STORE.

메소드 상세

__construct() 공개 메소드

public __construct ( string $prefix )
$prefix string Prefix for the keys.

__toString() 공개 메소드

public __toString ( )

all() 공개 정적인 메소드

Applies the specified prefix to all the arguments.
public static all ( Predis\Command\CommandInterface $command, string $prefix )
$command Predis\Command\CommandInterface Command instance.
$prefix string Prefix string.

evalKeys() 공개 정적인 메소드

Applies the specified prefix to the keys of an EVAL-based command.
public static evalKeys ( Predis\Command\CommandInterface $command, string $prefix )
$command Predis\Command\CommandInterface Command instance.
$prefix string Prefix string.

first() 공개 정적인 메소드

Applies the specified prefix only the first argument.
public static first ( Predis\Command\CommandInterface $command, string $prefix )
$command Predis\Command\CommandInterface Command instance.
$prefix string Prefix string.

georadius() 공개 정적인 메소드

Applies the specified prefix to the key of a GEORADIUS command.
public static georadius ( Predis\Command\CommandInterface $command, string $prefix )
$command Predis\Command\CommandInterface Command instance.
$prefix string Prefix string.

getPrefix() 공개 메소드

Gets the current prefix.
public getPrefix ( ) : string
리턴 string

interleaved() 공개 정적인 메소드

Applies the specified prefix only to even arguments in the list.
public static interleaved ( Predis\Command\CommandInterface $command, string $prefix )
$command Predis\Command\CommandInterface Command instance.
$prefix string Prefix string.

migrate() 공개 정적인 메소드

Applies the specified prefix to the key of a MIGRATE command.
public static migrate ( Predis\Command\CommandInterface $command, string $prefix )
$command Predis\Command\CommandInterface Command instance.
$prefix string Prefix string.

process() 공개 메소드

public process ( Predis\Command\CommandInterface $command )
$command Predis\Command\CommandInterface

setCommandHandler() 공개 메소드

The callback signature must have 2 parameters of the following types: - Predis\Command\CommandInterface (command instance) - String (prefix) When the callback argument is omitted or NULL, the previously associated handler for the specified command ID is removed.
public setCommandHandler ( string $commandID, mixed $callback = null )
$commandID string The ID of the command to be handled.
$callback mixed A valid callable object or NULL.

setPrefix() 공개 메소드

Sets a prefix that is applied to all the keys.
public setPrefix ( string $prefix )
$prefix string Prefix for the keys.

skipFirst() 공개 정적인 메소드

Applies the specified prefix to all the arguments but the first one.
public static skipFirst ( Predis\Command\CommandInterface $command, string $prefix )
$command Predis\Command\CommandInterface Command instance.
$prefix string Prefix string.

skipLast() 공개 정적인 메소드

Applies the specified prefix to all the arguments but the last one.
public static skipLast ( Predis\Command\CommandInterface $command, string $prefix )
$command Predis\Command\CommandInterface Command instance.
$prefix string Prefix string.

sort() 공개 정적인 메소드

Applies the specified prefix to the keys of a SORT command.
public static sort ( Predis\Command\CommandInterface $command, string $prefix )
$command Predis\Command\CommandInterface Command instance.
$prefix string Prefix string.

zsetStore() 공개 정적인 메소드

Applies the specified prefix to the keys of Z[INTERSECTION|UNION]STORE.
public static zsetStore ( Predis\Command\CommandInterface $command, string $prefix )
$command Predis\Command\CommandInterface Command instance.
$prefix string Prefix string.