ProtocolProcessorInterface
in
Defines a pluggable protocol processor capable of serializing commands and deserializing responses into PHP objects directly from a connection.
Tags
Table of Contents
- read() : mixed
- Reads a response from a connection to Redis.
- write() : mixed
- Writes a request over a connection to Redis.
Methods
read()
Reads a response from a connection to Redis.
public
read(CompositeConnectionInterface $connection) : mixed
Parameters
- $connection : CompositeConnectionInterface
-
Redis connection.
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.