PHP Class Predis\Profile\RedisProfile

Author: Daniele Alessandri ([email protected])
Inheritance: implements Predis\Profile\ProfileInterface
Exibir arquivo Open project: tillkruss/redis-object-cache

Public Methods

Method Description
__construct ( )
__toString ( ) : string Returns the version of server profile as its string representation.
createCommand ( $commandID, array $arguments = [] )
defineCommand ( string $commandID, string $class ) Defines a new command in the server profile.
getCommandClass ( string $commandID ) : string | null Returns the fully-qualified name of a class representing the specified command ID registered in the current server profile.
getProcessor ( )
setProcessor ( Predis\Command\Processor\ProcessorInterface $processor = null )
supportsCommand ( $commandID )
supportsCommands ( array $commandIDs )

Protected Methods

Method Description
getSupportedCommands ( ) : array Returns a map of all the commands supported by the profile and their actual PHP classes.

Method Details

__construct() public method

public __construct ( )

__toString() public method

Returns the version of server profile as its string representation.
public __toString ( ) : string
return string

createCommand() public method

public createCommand ( $commandID, array $arguments = [] )
$arguments array

defineCommand() public method

Defines a new command in the server profile.
public defineCommand ( string $commandID, string $class )
$commandID string Command ID.
$class string Fully-qualified name of a Predis\Command\CommandInterface.

getCommandClass() public method

Returns the fully-qualified name of a class representing the specified command ID registered in the current server profile.
public getCommandClass ( string $commandID ) : string | null
$commandID string Command ID.
return string | null

getProcessor() public method

public getProcessor ( )

getSupportedCommands() abstract protected method

Returns a map of all the commands supported by the profile and their actual PHP classes.
abstract protected getSupportedCommands ( ) : array
return array

setProcessor() public method

public setProcessor ( Predis\Command\Processor\ProcessorInterface $processor = null )
$processor Predis\Command\Processor\ProcessorInterface

supportsCommand() public method

public supportsCommand ( $commandID )

supportsCommands() public method

public supportsCommands ( array $commandIDs )
$commandIDs array