ProtocolProcessor
in package
implements
ProtocolProcessorInterface
Protocol processor for the standard Redis wire protocol.
Tags
Interfaces, Classes and Traits
- ProtocolProcessorInterface
- Defines a pluggable protocol processor capable of serializing commands and deserializing responses into PHP objects directly from a connection.
Table of Contents
- $mbiterable : mixed
- $serializer : mixed
- __construct() : mixed
- read() : mixed
- Reads a response from a connection to Redis.
- useIterableMultibulk() : mixed
- Enables or disables returning multibulk responses as specialized PHP iterators used to stream bulk elements of a multibulk response instead returning a plain array.
- write() : mixed
- Writes a request over a connection to Redis.
Properties
$mbiterable
protected
mixed
$mbiterable
$serializer
protected
mixed
$serializer
Methods
__construct()
public
__construct() : mixed
Return values
mixed —read()
Reads a response from a connection to Redis.
public
read(CompositeConnectionInterface $connection) : mixed
Parameters
- $connection : CompositeConnectionInterface
-
Redis connection.
Return values
mixed —useIterableMultibulk()
Enables or disables returning multibulk responses as specialized PHP iterators used to stream bulk elements of a multibulk response instead returning a plain array.
public
useIterableMultibulk(bool $value) : mixed
Streamable multibulk responses are not globally supported by the abstractions built-in into Predis, such as transactions or pipelines. Use them with care!
Parameters
- $value : bool
-
Enable or disable streamable multibulk responses.
Return values
mixed —write()
Writes a request over a connection to Redis.
public
write(CompositeConnectionInterface $connection, CommandInterface $command) : mixed
Parameters
- $connection : CompositeConnectionInterface
-
Redis connection.
- $command : CommandInterface
-
Command instance.