PHP 클래스 Predis\Connection\PhpiredisStreamConnection

This class is intended to provide an optional low-overhead alternative for processing responses from Redis compared to the standard pure-PHP classes. Differences in speed when dealing with short inline responses are practically nonexistent, the actual speed boost is for big multibulk responses when this protocol processor can parse and return responses very fast. For instructions on how to build and install the phpiredis extension, please consult the repository of the project. The connection parameters supported by this class are: - scheme: it can be either 'tcp' or 'unix'. - host: hostname or IP address of the server. - port: TCP port of the server. - path: path of a UNIX domain socket when scheme is 'unix'. - timeout: timeout to perform the connection. - read_write_timeout: timeout of read / write operations. - async_connect: performs the connection asynchronously. - tcp_nodelay: enables or disables Nagle's algorithm for coalescing. - persistent: the connection is left intact after a GC collection.
저자: Daniele Alessandri ([email protected])
상속: extends StreamConnection
파일 보기 프로젝트 열기: tillkruss/redis-object-cache 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( Predis\Connection\ParametersInterface $parameters )
__destruct ( )
__wakeup ( )
read ( )
writeRequest ( Predis\Command\CommandInterface $command )

보호된 메소드들

메소드 설명
assertSslSupport ( Predis\Connection\ParametersInterface $parameters )
createStreamSocket ( Predis\Connection\ParametersInterface $parameters, $address, $flags, $context = null )
getErrorHandler ( ) : Closure Returns the handler used by the protocol reader for error responses.
getReader ( ) : resource Returns the underlying protocol reader resource.
getStatusHandler ( ) : Closure Returns the handler used by the protocol reader for inline responses.

비공개 메소드들

메소드 설명
assertExtensions ( ) Checks if the phpiredis extension is loaded in PHP.
createReader ( ) : resource Creates a new instance of the protocol reader resource.

메소드 상세

__construct() 공개 메소드

public __construct ( Predis\Connection\ParametersInterface $parameters )
$parameters Predis\Connection\ParametersInterface

__destruct() 공개 메소드

public __destruct ( )

__wakeup() 공개 메소드

public __wakeup ( )

assertSslSupport() 보호된 메소드

protected assertSslSupport ( Predis\Connection\ParametersInterface $parameters )
$parameters Predis\Connection\ParametersInterface

createStreamSocket() 보호된 메소드

protected createStreamSocket ( Predis\Connection\ParametersInterface $parameters, $address, $flags, $context = null )
$parameters Predis\Connection\ParametersInterface

getErrorHandler() 보호된 메소드

Returns the handler used by the protocol reader for error responses.
protected getErrorHandler ( ) : Closure
리턴 Closure

getReader() 보호된 메소드

Returns the underlying protocol reader resource.
protected getReader ( ) : resource
리턴 resource

getStatusHandler() 보호된 메소드

Returns the handler used by the protocol reader for inline responses.
protected getStatusHandler ( ) : Closure
리턴 Closure

read() 공개 메소드

public read ( )

writeRequest() 공개 메소드

public writeRequest ( Predis\Command\CommandInterface $command )
$command Predis\Command\CommandInterface