PHP Интерфейс Clue\React\Redis\Client

Наследование: extends Evenement\EventEmitterInterface
Показать файл Открыть проект Примеры использования интерфейса

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

Метод Описание
__call ( string $name, string[] $args ) : React\Promise\PromiseInterface Invoke the given command and return a Promise that will be resolved when the request has been replied to
close ( ) close connection immediately
end ( ) end connection once all pending requests have been replied to
isBusy ( ) : boolean Checks if the client is busy, i.e. still has any requests pending

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

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

This is a magic method that will be invoked when calling any redis command on this instance.
public __call ( string $name, string[] $args ) : React\Promise\PromiseInterface
$name string
$args string[]
Результат React\Promise\PromiseInterface Promise

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

This will emit the "close" event.
См. также: self::end() for closing the connection once the client is idle
public close ( )

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

end connection once all pending requests have been replied to
См. также: self::close() for closing the connection immediately
public end ( )

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

Checks if the client is busy, i.e. still has any requests pending
public isBusy ( ) : boolean
Результат boolean