PHP 인터페이스 Clue\React\Redis\Client

상속: extends Evenement\EventEmitterInterface
파일 보기 프로젝트 열기: clue/redis-react 0 사용 예제들

공개 메소드들

메소드 설명
__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