PHP Класс Predis\Command\Processor\KeyPrefixProcessor

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

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

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