PHP Класс Bravo3\Orm\Tests\Drivers\Redis\DummyClient

Наследование: implements Predis\ClientInterface
Показать файл Открыть проект

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

Метод Описание
__call ( $method, $arguments )
connect ( ) Opens the underlying connection to the server.
createCommand ( string $method, array $arguments = [] ) : Predis\Command\CommandInterface Creates a new instance of the specified Redis command.
disconnect ( ) Closes the underlying connection from the server.
executeCommand ( Predis\Command\CommandInterface $command ) : mixed Executes the specified Redis command.
exists ( string $key ) : boolean Empty function to mock calls to Predis/Client
get ( string $key ) : string Empty function to mock calls to Predis/Client
getConnection ( ) : ConnectionInterface Returns the underlying connection instance.
getOptions ( ) : OptionsInterface Returns the client options specified upon initialization.
getProfile ( ) : ProfileInterface Returns the server profile used by the client.

Описание методов

__call() публичный Метод

public __call ( $method, $arguments )

connect() публичный Метод

Opens the underlying connection to the server.
public connect ( )

createCommand() публичный Метод

Creates a new instance of the specified Redis command.
public createCommand ( string $method, array $arguments = [] ) : Predis\Command\CommandInterface
$method string Command ID.
$arguments array Arguments for the command.
Результат Predis\Command\CommandInterface

disconnect() публичный Метод

Closes the underlying connection from the server.
public disconnect ( )

executeCommand() публичный Метод

Executes the specified Redis command.
public executeCommand ( Predis\Command\CommandInterface $command ) : mixed
$command Predis\Command\CommandInterface Command instance.
Результат mixed

exists() публичный Метод

Empty function to mock calls to Predis/Client
public exists ( string $key ) : boolean
$key string
Результат boolean

get() публичный Метод

Empty function to mock calls to Predis/Client
public get ( string $key ) : string
$key string
Результат string

getConnection() публичный Метод

Returns the underlying connection instance.
public getConnection ( ) : ConnectionInterface
Результат ConnectionInterface

getOptions() публичный Метод

Returns the client options specified upon initialization.
public getOptions ( ) : OptionsInterface
Результат OptionsInterface

getProfile() публичный Метод

Returns the server profile used by the client.
public getProfile ( ) : ProfileInterface
Результат ProfileInterface