IntegerResponse
in package
implements
ResponseHandlerInterface
Handler for the integer response type in the standard Redis wire protocol.
It translates the payload an integer or NULL.
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.