PHP Class Predis\Response\Status

Author: Daniele Alessandri ([email protected])
Inheritance: implements ResponseInterface
Show file Open project: tillkruss/redis-object-cache Class Usage Examples

Public Methods

Method Description
__construct ( string $payload )
__toString ( ) : string Converts the response object to its string representation.
get ( string $payload ) : string Returns an instance of a status response object.
getPayload ( ) : string Returns the payload of status response.

Method Details

__construct() public method

public __construct ( string $payload )
$payload string Payload of the status response as returned by Redis.

__toString() public method

Converts the response object to its string representation.
public __toString ( ) : string
return string

get() public static method

Common status responses such as OK or QUEUED are cached in order to lower the global memory usage especially when using pipelines.
public static get ( string $payload ) : string
$payload string Status response payload.
return string

getPayload() public method

Returns the payload of status response.
public getPayload ( ) : string
return string