StatusResponse
in package
implements
ResponseHandlerInterface
Handler for the status response type in the standard Redis wire protocol. It translates certain classes of status response to PHP objects or just returns the payload as a string.
Tags
Interfaces, Classes, Traits and Enums
- ResponseHandlerInterface
- Defines a pluggable handler used to parse a particular type of response.
Table of Contents
- handle() : mixed
- Deserializes a response returned by Redis and reads more data from the connection if needed.
Methods
handle()
Deserializes a response returned by Redis and reads more data from the connection if needed.
public
handle(CompositeConnectionInterface $connection, mixed $payload) : mixed
Parameters
- $connection : CompositeConnectionInterface
-
Redis connection.
- $payload : mixed
-
String payload.